To build and run the API:
- Rust Compiler
- Cargo (package manager and build tool for Rust)
- Docker
To run the test suite:
- npm
- node
- Clone the repository.
git clone [email protected]:peshala-prabhapoorna/todo_app_api.git
- Configure env file.
Copy the given .env.example
file and rename it to .env
. The values provided
in the env file work as they are. If they are changed make sure to make the
relevant changes in the docker-compse.yml
file and the env file of the test
suite as well.
cp .env.example .env
- Spin up the Postgresql database with docker.
docker compose up
- Build and run the API.
cargo run
- Configure env file.
Copy the given .env.example
file and rename it to .env
. The values provided
in the env file work as they are. If they are changed make sure to make the
relevant changes in the docker-compse.yml
file and the env file of at the
root of the repository as well.
cp backend-tests/.env-example backend-tests/.env
- Install NPM dependencies.
npm install
-
Build and run the API
-
Run the test suite.
npm test
Happy Coding!