Press play to see the video.
Press play to see the video.
Deployment specifications can be found in the final report
To run the backend api:
cd backend
# run postgres database
docker build -t postgres ./
docker run --net=host --name local-postgres -e POSTGRES_PASSWORD=password -e POSTGRES_USER=main -d postgres
#run js script to fill database with sample data
npm run seed-db
# run api
npm run start
Api docs are available under http://localhost:8000/api-docs
or https://asp-team33.onrender.com/api-docs
To enter PostgresQL within the docker, run:
docker exec -it local-postgres psql -U main -d api
The file is under data/users.json
To run tests:
npm test
Test info also can be found in data/tests/tests_output.txt
To check test coverage:
npm run coverage
Coverage can be found also on the server under either http://localhost:8000/coverage
or https://asp-team33.onrender.com/coverage
To start the React Native app run:
cd BookSwapApp
npx expo start