To use this project make sure you have Docker installed then run the following command on your terminal:
docker compose upRun the first test example:
docker exec pg-locking-workshop-app-1 node tests/players.js- Application setup (see
docker-compose.ymlfor more info):- Nodejs app:
- exposed at port 18080
- Postgresql database:
- exposed at port 15432
- Nodejs app:
- All application code is in
server.js
- Seed data (i.e. initial data): see
database-seed.sql
- Interactive postgres console:
docker exec -it pg-locking-workshop-postgres-1 psql