Skip to content

Dev-EndLess/Express-Middleware-Routes-MVC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A series on Youtube by Dave Gray on NodeJS/Express

YouTube Playlist ⬇️

🚩 Introduction

How to Build a Web Server

This introduction to Express JS, we will learn how to import the Express JS framework into your Node.js project and create your first Express app server

This project is very similar to the last part in Node.JS repository, but a lot of thing happen under the hood, so.. in this way is more easly start a server

Reference

🚀 NodeJS: https://nodejs.org/en/

🚀 NPM: https://www.npmjs.com/

🚀 Express: https://expressjs.com/

Some stuff about this repo

  • Create a minimal express server
  • Sending a file with Express
  • Handling redirects
  • Adding custom 404
  • Calling routes with next()

🚩 Middleware

What is middleware in Express JS? You will learn the answer in this Node.js & Express tutorial for Beginners. Error handler and logger custom middleware, built-in middleware and third party middleware will all be applied in this lesson for beginners.

Reference 🚀 NodeJS: https://nodejs.org/en/

🚀 NPM: https://www.npmjs.com/

🚀 Express: https://expressjs.com/

🚀 MDN CORS: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

🚀 NPM CORS: https://www.npmjs.com/package/cors

Some stuff about this repo Creating custom middleware Adding third party middleware Creating custom error handling app.use vs app.all Improving the custom 404 route handle


🚩 Routes

Learn how to setup routes with Express Router in this NodeJS. An Express JS app gets unorganized if you build it all in one file. Setup routes with Express Router to handle each route in its own file and organize your project.

Reference 🚀 NodeJS: https://nodejs.org/en/

🚀 NPM: https://www.npmjs.com/

🚀 Express: https://expressjs.com/

🚀 MDN CORS: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

🚀 NPM CORS: https://www.npmjs.com/package/cors

Some stuff about this repo Creating Router Applying static files to the routes Creating a REST API router Testing API routes


🚩 MVC (Model View Controller)

This tutorial gives an MVC model-view-controller example for a CRUD REST API with the Express framework. Building an API with Node.js & Express is part of the MERN stack.

Reference 🚀 NodeJS: https://nodejs.org/en/

🚀 NPM: https://www.npmjs.com/

🚀 Express: https://expressjs.com/

🚀 MDN CORS: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

🚀 NPM CORS: https://www.npmjs.com/package/cors

Some stuff about this repo Create Model and View controller Clean-up the project for make more readable and organized CRUD API Testing CRUD API

Extra Reference

🚀 HTTP response status Codes: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

About

Tutorial - Reference - Practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published