Skip to content

Commit d4f19f5

Browse files
authored
Update w2_1_Express_Generator
1 parent cf83ff6 commit d4f19f5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

w2_1_Express_Generator

+16-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Express Generator
22
-----------------
33
-> Quick scaffolding tool to generate an Express application skeleton;
44
-> Install : npm install express-generator -g
5-
-> Generatinh an express application: express <App Name>
5+
-> Generating an express application: express <App Name>
66
* Generates a folder under the current folder with the name <App name>
77
* Various options are available;
88
-> Move to folder and install the node modules; npm install;
@@ -13,4 +13,18 @@ i. app.js -> starting application;
1313
ii. package,json
1414
iii. public : static resources
1515
iv. routes: application routes
16-
v. views: template enigne templates;
16+
v. views: template engine templates;
17+
18+
* Express is a Node.js wed application framework that provides a robust set of features for web development and
19+
mobile development;
20+
* API -> with a myriad of HTTP utility methods and middleware , creating APIs is quick and easy;
21+
* Express application generator is a tool to create an application skeleton;
22+
* In express 3.0 , app.config or app.use() were used to require any middleware;
23+
* In express 4.0, all middleware has been removed and can be maintained and updated independetly from core Express
24+
(expect the statis middleware) , thus they are called in the app.js;
25+
* The bin\ directory serves as a location where you can define various startup scripts -> www example of how it
26+
should look like, without touching app.js;
27+
28+
* correct way to start express is -> npm start; deploy - heroku -> web: npm start;
29+
30+

0 commit comments

Comments
 (0)