The popular front end stack today is changing fast with React, react-router and webpack releasing newer versions. This is a starter app aimed to demonstrate how to integrate babel@7, react@16,react-router@4 and webpack@4.
This project comes with the following features
- React 16
- React Router 4
- Webpack 3
- Babel
- Server rendering
- Redux integration
- Dynamic imports
- Chunk splitting
- Styled components
- Nodemon
git clone git@github.com:imbhargav5/react-universal-starter.git
cd react-universal-starter
npm installTo run app in dev mode
npm run devThe app should be running on http://localhost:8888/
To run app in production mode
npm build
npm startThe app should be running on http://localhost:8888/
To clean and rebuild
npm run buildnpm run <script> |
Description |
|---|---|
prebuild |
Cleans up previous build folders. |
build:client |
Compiles client in production mode. |
build:server |
Compiles server in production mode. |
build |
Compiles client and server in production mode. |
dev:client |
Runs client in development mode |
dev:server |
Runs server in development mode |
dev |
Runs client and server in development mode |
start |
Start app in production mode. |
deploy |
Deploy(already compiled) app to www through a temporary now.sh url. If now is not already installed, Run npm install -g now. |
Thanks goes to these wonderful people (emoji key):
Bhargav Ponnapalli 💻 |
Tirta Nugraha 💻 |
Ned. 📖 |
rishabh-327 💻 |
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT Bhargav Ponnapalli(2017)



