#Documentation
The PROJECT API is the API of PROJECT API
- Rust
- Actix-Web
To Install Rust, go to RustLang and follow the necessary instructions required depending on your PC Operating System
To Install Cargo, go to Cargo and follow the necessary instructions required depending on your PC Operating System
Copy the .env.sample file and rename it to .env and update the values accordingly
To set up your database for the project, after creation kindly open the .env file and update as necessary
POSTGRES_URI=
REDIS_URI=
MONGO_URI=
AMPQ_URI=Use this template https://github.com/SofwanCoder/rust_project_api
To install the dev dependencies needed to monitor and continuously watch for changes, kindly run
cargo install cargo-watchTo install the necessary packages, in your folder directory kindly run
cargo build-
To continuously watch for changes
-
cargo watch -c -w src -x run
-
-
To run test cases
-
cargo test
-
-
To build your app (for production append
--releaseto the command)-
cargo build
-
-
To run your app server (for production append
--releaseto the command)-
cargo run
-
-
To validate without building
-
cargo check
-