To ensure you have a successful experience working with our Cosmos Cash content, Tendermint recommends this technical setup.
Click the GitHub icon in the sidebar for GitHub integration and follow the prompts.
Clone the repos you work in
- Fork or clone the https://github.com/allinbits/cosmos-cash/ repository.
Internal Tendermint users have different permissions, if you're not sure, fork the repo.
To build the project:
To run the seed scripts:
- OS: Linux or macOS
- jq JSON processor
For git pre-commit hooks:
- Python v3.8 or higher
- pre-commit git pre-commit hooks framework
- golangci-lint linter for Go
To generate the Swagger UI for the node REST endpoints:
Install the configured pre-commit hooks by running these commands from the project's root folder:
$ pre-commit install
$ pre-commit install --hook-type commit-msg
To build the Cosmos Cash node and command line client, run the make build
command from the project's root folder. The
output of the build will be generated in the build
folder.
For cross-builds use the standard GOOS
and GOARCH
env vars. i.e. to build for windows:
GOOS=windows GOARCH=amd64 make build
💡 You can also use the default
go
command to build the project. For reference, see the contents of the Makefile.
⚠️ on Windows, thesha256sum
command is not present so although themake build
command builds successfully, it fails to compute the checksum and does not copy the other resources to the build folder.
To run the unit and integration tests, run the make test
command from the project's root folder.
💡 you can also use the default
go
command to build the project, check the content of the Makefile for reference
To install the node client on your local machine, run the make install
command from the project's root folder.
💡 you can also use the default
go
command to build the project, check the content of the Makefile for reference
All code updates are not complete until accompanying documentation is submitted.
The documentation portal is generated using mkdocs, to build or run the documentation portal locally the requirements are:
- Python v3.8 or higher
Then, from the command line install the required packages
pip install mkdocs
pip install mkdocs-material
pip install mkdocs-build-plantuml-plugin
To build the documentation portal, execute the following command from the project root:
mkdocs build
The documentation portal is built in the site
directory.
To run the documentation portal, execute the following command from the project root:
mkdocs serve
The portal will be served on 'http://127.0.0.1:8000/'