I need some help with setting up my React project. I am currently running npm run dev
in the terminal to compile and run my app. Is there a more efficient way to do this?
$ node server/index.js
Here is my project folder structure:
https://i.sstatic.net/8ESJL.png
Below is the content of my package.json
file:
{
"name": "iOS.server2x.socket",
"version": "0.0.1",
"description": "iOS Live Socket.",
"author": "iOS Interactive",
"main": "server/index.js",
"port": 1101,
"scripts": {
"pretest": "eslint ./server",
"test": "echo \"Error: no test specified\" && exit 0",
"start": "rm -rf /home/git/.forever/chat.log; forever start --uid 'chat' ./server/index.js",
"stop": "forever stop chat"
},
"repository": {
"type": "xxxxxx",
"url": "http://url/url"
},
"dependencies": {
"async": "^1.4.2",
"babel": "5.8.3",
},
"devDependencies": {
"babel-eslint": "4.0.5",
}
}
Do I need to incorporate webpack for this setup?