fac-14 / DAAMwk5

MIT License
0 stars 0 forks source link

node ./src/server.js #36

Open missKatiaPunter opened 6 years ago

missKatiaPunter commented 6 years ago

I had to look it up how to run the server when there is no run script in package.json! Please include one (at the start of your project, ideally).

missKatiaPunter commented 6 years ago
 "start": "node ./src/server.js",
 "start:watch": "nodemon ./src/server.js",
missKatiaPunter commented 6 years ago

The snippet above shows how to write start script in pakcage.json, in case you didn't know. Also start script should be there by default but... somehow it does not always work.

MissArray commented 6 years ago

Thanks for the comment. There is the following bit in the package.json. Re: nodemon, please see #23.

"description": "", "main": "./src/server.js", "scripts": { "test": "node ./src/test.js", "lint": "./node_modules/.bin/eslint" },

missKatiaPunter commented 6 years ago

I suggested you also added "start" to scripts as outlined above. And, perhaps, start:watch.