Skip to content

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

Notifications You must be signed in to change notification settings

pedro-donoso/restapi-node-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps

INIT

  1. Download or Clone repo

TERMINAL

  1. In terminal:
npm i express pg nodemon

RUN

  1. In terminal:
npm run dev

PSQL

  1. Configuration in PSQL:

vscode

GET USERS

  1. View users in localhost:

local

POST

  1. In Extension VSCode "Thunder Client":

Method POST -> JSON

thunder

GET

  1. Method GET -> Search Users by ID

GET

DELETE

  1. Method DELETE -> Delete Users by ID

DELETE

UPDATE

  1. Method PUT -> Update Users by ID

update

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •