Details:
Prequisites:
Steps to run the project:
- npm install
- docker postgres docker image pull
- from the root of this repository, execute the command:
docker compose up
- node index.js
Schema:
- database: events_db
- table: events
API Endpoints:
- GET /events: Retrieve all events.
- GET '/events/online'
- GET '/events/offline'
** To play around with the database
docker exec -it <docker-postgres-container> bash
su - postgres
psql -d <db-name>