Skip to content

codingjlu/express-react-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.