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
- Host: GitHub
- URL: https://github.com/merin83/isomorphic-cra
- Owner: merin83
- Created: 2019-05-14T12:25:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T08:47:24.000Z (over 2 years ago)
- Last Synced: 2025-01-07T07:02:46.986Z (4 months ago)
- Topics: create-react-app, data-fetching, isomorphic, react-router, reactjs, server-side-rendering, ssr
- Language: JavaScript
- Homepage:
- Size: 4.37 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
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
```