- node and npm latest
- Postgres
- clone the project and cd into the project
- run
npm install
- create database with name:
api
and also create a table inside this database named users with columnsname, email
. - run server by
node index.js
- Hit these APIs:
URLS Exposed:
GET http:localhost:3000/users
POST http:localhost:3000/users {name: 'Jonathan', email: 'jona@gmail.com'}
or use curl to hit API
curl --data "name=Ela22ine&email=elain44e@example.com" http://localhost:3000/users