Install Docker by following it's installation instructions.
Install Watch by running cargo install cargo-watch
.
When developing, ensure cargo watch --clear -x fmt
is running in a terminal, where:
- watch
will detect any changes in the repo and refresh commands.
- --clear
will clear the console output each time changes are detected.
- fmt
will format your Rust code to comply with standards and ensure unformatted code is not committed.
To launch the application run docker compose up --build
, this will:
- expose the API via http://localhos:<port>
The individual ports uniquely chosen by Docker can be found through the Docker interface.