#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-watch
To 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
--release
to the command)-
cargo build
-
-
To run your app server (for production append
--release
to the command)-
cargo run
-
-
To validate without building
-
cargo check
-