Skip to content

Dev-Code-Community/TechNexus-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>