Set Up Your Work Environment
On this page, you can find helpful links to set up your work environment.
Dependencies
In this section, you can find all you need to install:
- Git
- Go v1.22.3
- go-codegen v0.2.2
- Docker
- Rust and Cargo
- just (optional)
Note
On a general note, it is advisable to prepare a separate project folder to keep all your Cosmos exercises.
Git
Install Git following the instructions on the Git website. Test if Git is installed by running the following command:
git --version
Go
Install the latest version of Go following the instructions on the Go website. Test if Go is installed by running the following command:
go version
go-codegen
Install go-codegen by following the instructions on the README.md or by using the command below.
go install github.com/srdtrk/go-codegen@v0.2.2
Test if go-codegen is installed by running the following command:
go-codegen version
Docker
Install Docker following the instructions on the Docker documentation. Test if Docker is installed by running the following command:
docker --version
Rust and Cargo
Install Rust and Cargo following the instructions on the Rust book. Test if Rust is installed by running the following commands:
cargo --version
just
Just
Just is a handy make
alternative written in Rust. It is optional but recommended for this tutorial. Instead of writing a Makefile
, you can write a justfile
to automate your tasks.
Install just following the instructions on the just manual or by using the command below.
cargo install just
Test if just is installed by running the following command:
just --version
Just
If you don't want to install just
, you can simply run the commands in the justfile
manually.