File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,17 @@ Fullstack:
26
26
27
27
> [ Angular 11 + Node.js Express + MySQL example] ( https://bezkoder.com/angular-11-node-js-express-mysql/ )
28
28
29
+ > [ Angular 12 + Node.js Express + MySQL example] ( https://bezkoder.com/angular-12-node-js-express-mysql/ )
30
+
29
31
> [ React + Node.js + Express + MySQL example] ( https://bezkoder.com/react-node-express-mysql/ )
30
32
33
+ Integration (run back-end & front-end on same server/port)
34
+ > [ Integrate React with Node.js Restful Services] ( https://bezkoder.com/integrate-react-express-same-server-port/ )
35
+
36
+ > [ Integrate Angular with Node.js Restful Services] ( https://bezkoder.com/integrate-angular-10-node-js/ )
37
+
38
+ > [ Integrate Vue with Node.js Restful Services] ( https://bezkoder.com/serve-vue-app-express/ )
39
+
31
40
## Project setup
32
41
```
33
42
npm install
Original file line number Diff line number Diff line change 1
1
const express = require ( "express" ) ;
2
- const bodyParser = require ( "body-parser" ) ;
2
+ // const bodyParser = require("body-parser"); /* deprecated */
3
3
const cors = require ( "cors" ) ;
4
4
5
5
const app = express ( ) ;
@@ -11,10 +11,10 @@ var corsOptions = {
11
11
app . use ( cors ( corsOptions ) ) ;
12
12
13
13
// parse requests of content-type - application/json
14
- app . use ( bodyParser . json ( ) ) ;
14
+ app . use ( express . json ( ) ) ; /* bodyParser.json() is deprecated */
15
15
16
16
// parse requests of content-type - application/x-www-form-urlencoded
17
- app . use ( bodyParser . urlencoded ( { extended : true } ) ) ;
17
+ app . use ( express . urlencoded ( { extended : true } ) ) ; /* bodyParser.urlencoded() is deprecated */
18
18
19
19
const db = require ( "./app/models" ) ;
20
20
You can’t perform that action at this time.
0 commit comments