An open API service indexing awesome lists of open source software.

https://github.com/merin83/isomorphic-cra

Isomorphic create react app using CRA-Universal
https://github.com/merin83/isomorphic-cra

create-react-app data-fetching isomorphic react-router reactjs server-side-rendering ssr

Last synced: about 2 months ago
JSON representation

Isomorphic create react app using CRA-Universal

Awesome Lists containing this project

README

        

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app) and [Cra-Universal](https://github.com/antonybudianto/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
```