Goal:
- Learners should understand how to config node in app.toml
- Learners should be able to start a node with configured app.toml
Node configuration consists of three parts:
- app.toml: configuration for Cosmos side
- client.toml: configuration for client CLI interaction
- config.toml: configuration for Tendermint side
Due to complex configuration in config.toml, it will not be covered.
For app.toml, a beginner should only need to know about how to enable API server
- initialize a node
- try to find app.toml in ~/.baby/config. Try to look for this paragraph
- There are four fields that you need to care about. Explaination is already in the file.
- enable
- swagger
- address
- enabled-unsafe-cors
- Change it like in run-node.sh
- Browse: "localhost:1310" to check
- Change api server address in app.toml and browse it again to make sure that it is accessible