stride
stride is a blockchain built using Cosmos SDK and Tendermint and created with Starport.
Get started
starport chain serve
serve
command installs dependencies, builds, initializes, and starts your blockchain in development.
Your blockchain in development can be configured with config.yml
. To learn more, see the Starport docs.
Web Frontend
Starport has scaffolded a Vue.js-based web app in the vue
directory. Run the following commands to install dependencies and start the app:
cd vue
npm install
npm run serve
The frontend app is built using the @starport/vue
and @starport/vuex
packages. For details, see the monorepo for Starport front-end development.
Release
To release a new version of your blockchain, create and push a new tag with v
prefix. A new draft release with the configured targets will be created.
git tag v0.1
git push origin v0.1
After a draft release is created, make your final changes from the release page and publish it.
Install
To install the latest version of your blockchain node's binary, execute the following command on your machine:
curl https://get.starport.com/Stride-Labs/stride@latest! | sudo bash
Stride-Labs/stride
should match the username
and repo_name
of the Github repository to which the source code was pushed. Learn more about the install process.
Learn more
Build
Please run make init
to build and serve 3 Stride nodes, 3 Gaia nodes, and 1 Hermes relayer on docker images.
You can run make init build=stride
(the default option) to
- Run
ignite chain build
to build the Stride binary
- Rebuild Stride, using cache when possible
- Spin up the 7 docker containers and start all processes
Alternatively, you can run make init build=strideall
to re-build the docker image from scratch.
If you want to re-build all images, you can run make init build=base
to:
- Run
ignite chain build
to build the Stride binary
- Rebuild Stride, Gaia, and Hermes docker images, using cache when possible
- Spin up the 7 docker containers and start all processes
Alternatively, you can run make init build=all
to
- Run
ignite chain build
to build the Stride binary
- Fully rebuild Stride, Gaia, and Hermes docker images, ignoring the cache
- Spin up the 7 docker containers and start all processes
Or, if you just want to re-serve, run make init build=none
to
- Use existing Stride binary
- Use existing docker images
- Spin up the 7 docker containers and start all processes
Build (Lower Level)
Proceed with lower-level building at your own discretion. Only make init
is well-supported.
You can run sh scripts/init.sh
to achieve the same output as the above. The following flags are supported
-b
This will run ignite chain build
-d
This will re-build all docker images, using cache
-f
This will re-build all docker images, ignoring cache.
-s
This will re-build Stride's docker images, using cache.
-a
This will re-build Stride's docker images, ignoring cache.
At the end, all 7 docker images will be served.