https://github.com/pedro-donoso/restapi-node-postgres
Rest API: Utilizo modulo pg, levanto servidor con Express y creo rutas, en Middlewares utilizo métodos para formato JSON y urlencoded, con Postgresql creo Base de Datos y agrego datos a Tabla
https://github.com/pedro-donoso/restapi-node-postgres
api api-rest express express-js expressjs json json-api node node-js nodejs nodemon npm pg postgres postgresql rest-api terminal
Last synced: 2 months ago
JSON representation
Rest API: Utilizo modulo pg, levanto servidor con Express y creo rutas, en Middlewares utilizo métodos para formato JSON y urlencoded, con Postgresql creo Base de Datos y agrego datos a Tabla
- Host: GitHub
- URL: https://github.com/pedro-donoso/restapi-node-postgres
- Owner: pedro-donoso
- Created: 2022-02-08T13:40:06.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T02:47:39.000Z (over 1 year ago)
- Last Synced: 2025-03-21T00:18:18.854Z (9 months ago)
- Topics: api, api-rest, express, express-js, expressjs, json, json-api, node, node-js, nodejs, nodemon, npm, pg, postgres, postgresql, rest-api, terminal
- Language: JavaScript
- Homepage:
- Size: 1.57 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Steps
### INIT
1. Download or Clone repo
### TERMINAL
2. In terminal:
```
npm i express pg nodemon
```
### RUN
3. In terminal:
```
npm run dev
```
### PSQL
4. Configuration in PSQL:

### GET USERS
5. View users in localhost:

### POST
6. In Extension VSCode "Thunder Client":
Method POST -> JSON

### GET
7. Method GET -> Search Users by ID

### DELETE
8. Method DELETE -> Delete Users by ID

### UPDATE
9. Method PUT -> Update Users by ID

* View changes -> Method GET
```
http://localhost:3000/users
```