Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 829 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 829 Bytes

This project was bootstrapped with Create React App and Cra-Universal.

Development

i) yarn (run the below command in seperate window at the root directory)
ii) yarn start 
iii) yarn cra-universal start

Production

# Change directory to your project root first, and run:
yarn cra-universal build

# This command will build both client and server and put them into `./dist`

Deployment

First, follow the Production guide mentioned above.
Since the bundle used Webpack Node Externals, you need to run npm install --production on the copied /dist, but this time you don't need to install its devDependencies
Use process manager like PM2 to run your server, your run target is ./dist/server/bundle.js