Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 566 Bytes

File metadata and controls

31 lines (23 loc) · 566 Bytes

Details:

Prequisites:

  • nodejs
  • docker

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>