This script will start both the WebpackDevServer
and the production API server at the same time.
Run the script from the project root folder with:
./start.sh
They can be stopped at the same time by pressing CTRL + C
.
The structure of the files should be:
project-folder/
├── client/
├── server/
└── start.sh
The client folder should contain the react-simple-boilerplate and the server folder should contain the production Node.js app that serves the API routes that the client application consumes. In the server app, there should be a script in the package.json called "local"
. It would be handy if this was defined as "nodemon server"
and nodemon
was listed in devDependencies
.