Skip to content

Latest commit

 

History

History
30 lines (28 loc) · 664 Bytes

File metadata and controls

30 lines (28 loc) · 664 Bytes

Express React Template

A template for Express and React on the same server. Demo.

Getting started

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!!

Production

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.