Build a rest api using nodejs/express.js, swagger and postgres db.
$ npm install
PostgreSQL database connection options are shown in the following table:
Option | Development |
---|---|
Host | localhost |
Port | 5432 |
Username | postgres |
Password | postgres |
Database | node-api |
# development
$ node index.js
Swagger documentation will be available at http://localhost:3000/api-docs/