Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node ./src/server.js #36

Open
missKatiaPunter opened this issue Aug 3, 2018 · 4 comments
Open

node ./src/server.js #36

missKatiaPunter opened this issue Aug 3, 2018 · 4 comments

Comments

@missKatiaPunter
Copy link

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
Copy link
Author

 "start": "node ./src/server.js",
 "start:watch": "nodemon ./src/server.js",

@missKatiaPunter
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants