Implementation of the new router in Express v4.0.
Does the following tasks :- Basic Routes: Home, About Route Middleware to log requests to the console Route with Parameters Route Middleware for Parameters to validate specific parameters Login routes Doing a GET and POST on /login Validates a parameter passed to a certain route
Also used Nodemon to run the app.
Just clone or download the folder and run npm install from your server file. Keep in mind the folder structure.
##Folder Structure:-
node_modules server.js(Server file) public ├── css │ ├── style.css │ └── style.less ├── js │ ├── base.js │ └── index.js ├── scripts │ └── jquery.js └── views ├── index.html └── login.html
All the Best!!