The Application perform the simple CRUD operation.
This application present simple demonstration about the:
- Usage of Knex
- Usage of Swagger
- Usage of JSON Schema Validation
- Usage of Unit Testing
- Node.js
- Postgres SQL
- Knex
- Swagger
- Clone the repo
git clone https://github.com/shekbruce/node_pg_knex_crud.git
- Install NPM packages
npm install
- Create .env file and add below enironment variables
- PORT
- DB_CLIENT
- DB_HOST
- DB_PORT
- DB_USER
- DB_PASSWORD
- DB_NAME
-
npm run dev-start
- Go to http://localhost:PORT/
npm run test