A template for Express and React on the same server. Demo.
Just copy the source:
git clone https://github.com/codingjlu/express-react-template.gitThen run the following commands one by one:
cd express-react-template npm iYou can start the dev server by running
npm run devThis 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 buildThen start the server with
npm startThat's all there is to it.