https://github.com/dirkjbosman/node-postgresql-destructured
A (Destructured) Express Node PostgreSQL App
https://github.com/dirkjbosman/node-postgresql-destructured
api express javascript node nodejs postgresql sql
Last synced: about 1 month ago
JSON representation
A (Destructured) Express Node PostgreSQL App
- Host: GitHub
- URL: https://github.com/dirkjbosman/node-postgresql-destructured
- Owner: dirkjbosman
- Created: 2020-08-27T10:56:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T13:16:49.000Z (over 4 years ago)
- Last Synced: 2025-05-08T17:57:20.806Z (about 1 month ago)
- Topics: api, express, javascript, node, nodejs, postgresql, sql
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-postgresql-destructured
#### Summary:
- node express server, middleware and apis
- postgresql relational database### Boilerplates:
- [Part 1: node-postgresql-unstructured](https://github.com/dirkbosman/node-postgresql-unstructured)
- [Part 2: node-postgresql-destructured](https://github.com/dirkbosman/node-postgresql-destructured)
- [Part 3: node-postgresql-controllers](https://github.com/dirkbosman/node-postgresql-controllers)
---
- [Part 4a: node-mongodb-controllers](https://github.com/dirkbosman/node-mongodb-controllers)
- Part 4b: Combine [node-mongodb-clientforserver](https://github.com/dirkbosman/node-mongodb-clientforserver) + [node-mongodb-controllers](https://github.com/dirkbosman/node-mongodb-controllers)#### Node SQL sample project:
1. Move the order routes to the `./api/orders.js` file. You will need the same imports in the `./api/users.js` routes. When you are done, you can delete the commented order routes in the `server.js`
2. Create `post`, `delete` and `put` routes for orders like it's been done for users.
3. Make sure the order routes are using the error handling middleware by calling the `next` function in every `catch` statement, like it's done for users.