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
, react@16
,react-router@4
and webpack@3
.
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 [email protected]:imbhargav5/react-universal-starter.git
cd react-universal-starter
npm install
To run app in dev mode
npm run dev
The app should be running on http://localhost:8888/
To run app in production mode
npm build
npm start
The app should be running on http://localhost:8888/
To clean and rebuild
npm run build
npm 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. ๐ |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT Bhargav Ponnapalli(2017)