Skip to content

juanfcoespin/nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templates to create empty restFull API

Thanks in avance a AcadeMind for share your knowlage on:

https://www.youtube.com/watch?v=blQ60skPzl0&list=PL55RiY5tL51q4D-B63KBnygU6opNPFk_q&index=2

To run whatever project:

  1. install nodeJs server (https://nodejs.org/es/download/)
  2. install required packages (npm install package.json)
  3. run server (node .\server.js)

Projects

00 SimpleRestApi:

Libraries:
- express //to init app server

Resume:
Shows the most simple rest behavor

01 RestApiRoutes:

Libraries:
- express.router //to define each api
- body-parser   //to extract body data in json format

Resume:
- Show routes management. For this example we use two apis: products and orders
- manage methods: GET, POST, PATCH, DELETE 
- error handling

02 Security:

- manage cors to allow access to our api from other client different from server

03 DataWithMongoDB:

- Use mongoDB to store and consume data

About

templeates for nodejs backend projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published