alexnd / reactapp

Boilerplate on top of CRA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

* Please review Top Starred Boilerplates

Boilerplate on top of CRA

  • All inbox-ed stuff from create-react-app like hot reload and service worker
  • Pages router on react-router-dom with easy reindexing
  • UI framework on Bootstrap 4 with reactstrap
  • Some globals preconfigured (L for logs, G for globals, React to not include in every new component)
  • Common Layout for all pages
  • Initdata parsing including base64 encoded json
  • Webpack 4 ready
  • No Redux or Mobx included! Feel free to set up state management in your own way ;)

This project was bootstrapped with Create React App.

If you newbie to all this React-* stuff - you should study referred original README first!

Howto's

to install dependencies:

  • run npm i

to begin develop with webpack dev server:

  • run npm start

to build static production bundle:

  • run npm run build

to add new page:

  • create component in src/pages/PageNamePage.js
  • run npm run reindex-pages
  • add route to src/routes.js

Refs

About

Boilerplate on top of CRA


Languages

Language:JavaScript 96.7%Language:HTML 2.6%Language:CSS 0.7%