This is an API made for the RepoProvas web application, an online repository for submitting and accessing college exams
(All registered teachers are fictitious)
You can check the front-end application here: https://github.com/victordurco/repo-provas
And the working application here: https://repo-provas-beige.vercel.app/
git clone https://github.com/victordurco/repo-provas-api
cd repo-provas-api
npm i
Create a .env.dev file and fill it using your environment variables following the example at .env.example file. (You can also create a .env.test file following the same .env.example, if you want to run the tests).
sudo su postgres
psql
CREATE DATABASE repoprovas
\c repoprovas
Copy everything in the DATABASE.sql file and paste on the terminal
You can not exit the postgres admin, and run
npm run dev
npm run test
(to run tests)