-
Download code
-
In terminal:
npm install express pg pg-hstore nodemon sequelize morgan @babel/polyfill
- Babel:
npm install --save-dev @babel/core @babel/cli @babel/preset-env
- in PSQL -> password: password
- In terminal, run server:
npm run dev
In extension "Thunder Client", vsCode:
http://localhost:3000/api/projects
In PSQL -> SELECT * FROM projects;
In extension "Thunder Client":
http://localhost:3000/api/projects/12
Update project
http://localhost:3000/api/projects/2
Delete project
http://localhost:3000/api/projects/14
- revision in PSQL -> SELECT * FROM projects;