A template for Express and React on the same server. Demo.
Just copy the source:
git clone https://github.com/codingjlu/express-react-template.git
Then run the following commands one by one:
cd express-react-template
npm i
You can start the dev server by running
npm run dev
This will fire up an Express server with live Webpack compilation and HMR. Edit away!!
The process is pretty simple. First build the project:
npm run build
Then start the server with
npm start
That's all there is to it.