Skip to content

API REST con Nodejs y base de datos Postgresql, el usuario puede crear nuevos proyectos con POST, consultar existentes con GET o especificos por ID, actualizar con PUT y eliminar con DELETE

Notifications You must be signed in to change notification settings

pedro-donoso/node-postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps:

  1. Download code

  2. In terminal:

npm install express pg pg-hstore nodemon sequelize morgan @babel/polyfill
  1. Babel:
npm install --save-dev @babel/core @babel/cli @babel/preset-env
  1. in PSQL -> password: password

psql

  1. In terminal, run server:
npm run dev
  1. POST

In extension "Thunder Client", vsCode:

http://localhost:3000/api/projects

Captura

  1. GET (All Projects)

In PSQL -> SELECT * FROM projects;

postgres

  1. GET (Project by ID)

In extension "Thunder Client":

http://localhost:3000/api/projects/12

id

  1. PUT

Update project

http://localhost:3000/api/projects/2

put

  1. DELETE

delete

Delete project

http://localhost:3000/api/projects/14
  • revision in PSQL -> SELECT * FROM projects;

BORRAR

About

API REST con Nodejs y base de datos Postgresql, el usuario puede crear nuevos proyectos con POST, consultar existentes con GET o especificos por ID, actualizar con PUT y eliminar con DELETE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published