Skip to content

peshala-prabhapoorna/todo_app_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToDo App API

Build from Source

Prerequisits

To build and run the API:

  • Rust Compiler
  • Cargo (package manager and build tool for Rust)
  • Docker

To run the test suite:

  • npm
  • node

Build and run the API

  1. Clone the repository.
git clone [email protected]:peshala-prabhapoorna/todo_app_api.git
  1. 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
  1. Spin up the Postgresql database with docker.
docker compose up
  1. Build and run the API.
cargo run

Run the test suite

  1. 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
  1. Install NPM dependencies.
npm install
  1. Build and run the API

  2. Run the test suite.

npm test

Happy Coding!

About

task manager with Rust backend and Solid-js frontend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published