@@ -2,7 +2,7 @@ Express Generator
2
2
-----------------
3
3
-> Quick scaffolding tool to generate an Express application skeleton;
4
4
-> Install : npm install express-generator -g
5
- -> Generatinh an express application: express <App Name>
5
+ -> Generating an express application: express <App Name>
6
6
* Generates a folder under the current folder with the name <App name>
7
7
* Various options are available;
8
8
-> Move to folder and install the node modules; npm install;
@@ -13,4 +13,18 @@ i. app.js -> starting application;
13
13
ii. package,json
14
14
iii. public : static resources
15
15
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