File tree Expand file tree Collapse file tree 4 files changed +648
-0
lines changed
Expand file tree Collapse file tree 4 files changed +648
-0
lines changed Original file line number Diff line number Diff line change 1+ node_modules /
Original file line number Diff line number Diff line change 1+ const express = require ( 'express' ) ;
2+ const port = 9000 ;
3+ const app = express ( ) ;
4+
5+ // //parse the form data sent with post request
6+ // const bodyParser = require('body-parser');
7+ // app.use(bodyParser.urlencoded({ extended: false }));
8+
9+ // // use express router
10+ // app.use('/', require('./routes/index'));
11+
12+ // //for static file
13+ // app.use(express.static('assets'));
14+
15+ // // Set up the view engine
16+ // app.set('view engine', 'ejs');
17+ // app.set('views', './views');
18+
19+
20+ app . listen ( port , function ( err ) {
21+ if ( err ) {
22+ console . log ( `Error in running the server: ${ err } ` ) ;
23+ }
24+ console . log ( `Server is running on port: ${ port } ` ) ;
25+ } ) ;
You can’t perform that action at this time.
0 commit comments