Rust backend starter
REST API with Rust and MongoDB - Rocket Version
Startup
- Clone the repo
git clone https://github.com/T-Damer/rust-backend-starter.git
- Go into the folder
cd rust-backend-starter
- Install dependencies
cargo install --path .
- Create
.env
in project root, fill it properly, consider looking into.env.sample
- To start the server run
cargo run
Default endpoint is: http://127.0.0.1:8000/
Available commands
cargo watch -x run
- watch for changes and rebuild
cargo upgrade
- list all new versions of crates for Cargo.toml