Lecture06-Expressjs
Lecture06-Expressjs
that provides a robust set of features for web and mobile application.
app.listen(3000);
Expressjs - Routing
The following function is used to define routes in an Express application
app.method(path, handler)
The examples:
app.get('/hello', function(req, res){
res.send("Hello World!");
});
Always install dependencies with a --save or --save-dev. This will ensure that if you
move to a different platform, you can just run npm install to install all dependencies.
Stick with lowercase file names and camelCase variables. If you look at any npm
module, its named in lowercase and separated with dashes. Whenever you require
these modules, use camelCase.