File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,15 @@ Is this ok? (yes) yes
45
45
46
46
#### Check package.json created.
47
47
48
- Open the project in VS code using command: code .
49
-
48
+ Open the project in VS code using command:
49
+ ```` diff
50
+ code .
51
+ ````
50
52
4 . Install necessary modules: express, sequelize, mysql2 and cors.
51
53
Run the command:
52
54
```` diff
53
55
npm install express sequelize mysql2 cors --save
54
- ```
56
+ ````
55
57
Check package.json updated.
56
58
57
59
** express** is a popular Node.js framework for building web applications and APIs.
@@ -182,9 +184,8 @@ create models folder, create product.model.js and customer.model.js files. Code
182
184
183
185
184
186
9 . Create the Controller
185
- Inside app/controllers folder, let’s create tutorial.controller.js with these CRUD functions:
186
-
187
- create controllers folder, create product.controller.js and customer.controller.js files. Code provided
187
+ Inside app folder, let’s create controller folder.
188
+ create product.controller.js and customer.controller.js files. Code provided
188
189
189
190
10 . create routes folder then routes/routes.js like this:
190
191
You can’t perform that action at this time.
0 commit comments