Skip to content

Commit cbe4835

Browse files
committed
Modified package.json
Run npm start to bring up the server
1 parent c13d29e commit cbe4835

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7+
"build": "webpack",
8+
"start": "npm run build & babel-node server",
79
"test": "echo \"Error: no test specified\" && exit 1"
810
},
911
"author": "",
1012
"license": "ISC",
1113
"devDependencies": {
14+
"babel-cli": "^6.6.5",
1215
"babel-core": "^6.7.4",
1316
"babel-loader": "^6.2.4",
1417
"babel-preset-es2015": "^6.6.0",

server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ app.get('/', (req, res) => {
2121
res.render('pages/index', {'body': app});
2222
});
2323

24-
app.listen(3000, () => console.log('Server running'));
24+
app.listen(4000, () => console.log('Server running'));

0 commit comments

Comments
 (0)