Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hi-shekhar/node_pg_knex_crud
A crud application using node.js, Postgres, Knex
https://github.com/hi-shekhar/node_pg_knex_crud
crud-application expressjs jsonschema jsonschema-validator knex knexjs-nodejs-db-migration mocha-chai nodejs postgresql swagger swagger-ui typescript
Last synced: 11 days ago
JSON representation
A crud application using node.js, Postgres, Knex
- Host: GitHub
- URL: https://github.com/hi-shekhar/node_pg_knex_crud
- Owner: hi-shekhar
- Created: 2023-03-22T22:14:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-09T14:44:09.000Z (over 1 year ago)
- Last Synced: 2024-10-31T03:42:14.792Z (about 2 months ago)
- Topics: crud-application, expressjs, jsonschema, jsonschema-validator, knex, knexjs-nodejs-db-migration, mocha-chai, nodejs, postgresql, swagger, swagger-ui, typescript
- Language: TypeScript
- Homepage:
- Size: 263 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node PG Knex CRUD
![Node PG Knex CRUD Screen Shot](./assets/homepage.png)
The Application perform the simple CRUD operation.
This application present simple demonstration about the:
1. Usage of Knex
2. Usage of Swagger
3. Usage of JSON Schema Validation
4. Usage of Unit Testing## Built With
1. Node.js
2. Postgres SQL
3. Knex
4. Swagger## Installation
1. Clone the repo
```sh
git clone https://github.com/shekbruce/node_pg_knex_crud.git
```
2. Install NPM packages
```sh
npm install
```## Running the application
1. Create .env file and add below enironment variables
* PORT
* DB_CLIENT
* DB_HOST
* DB_PORT
* DB_USER
* DB_PASSWORD
* DB_NAME
2. ```sh
npm run dev-start
```
3. Go to http://localhost:PORT/## Running the the test
```sh
npm run test
```