Skip to content

bowen31337/react-app-demo

Repository files navigation

Available Scripts

This project is an "eject" version of create-react-app,but added with more features/changes below:

  • Yarn package management
  • Webpack upgraded to version 2
  • move babel config from package.json to .bablesc
  • multi-entries, code splitting, tree shaking on production
  • add service-worker for production (Progressive Web Apps)

Project Description

The widget reads a list of data (5000 items) from remote endpoint, renders with pagination in a table. the link of demo is https://ns-gjigbhyuxp.now.sh

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

After builds, You may also serve it locally with a static server:

npm install -g pushstate-server
pushstate-server build
open http://localhost:9000

npm run deploy-*

Deploy to Now server

npm run deploy-now

For more infor on how to deploy app to Now server, please refer to this post: Zero Configuration Deployment for React app with Zeit Now

Deploy to Github page

npm run deploy-gh

Please configure the 'homepage' in package.json before deploying.

About

inspired by create-react-app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published