This project builds a modern one-page React project from scratch. The project does not contain business code, so you can follow this guideline to get familiar with the construction and deployment process of the project.

Project github address: SPa-from-scratch (welcome everyone star)

Frameworks and libraries used:

  • UI framework – React
  • Packet management – Yarn
  • Code verification – Eslint, Prettier
  • Compile – Babel
  • Packaging – Webpack
  • Style – Styled Components
  • Route-reach indicates the Router
  • State management – Mobx
  • Test – Jest

How to use

  1. Copy the codegit clone [email protected]:gaoljie/spa-from-scratch.git <PROJECT-NAME>
  2. Install dependenciescd <PROJECT-NAME> && yarn install
  3. Run locallyyarn start
  4. packagingyarn build

directory

01 – Initialization

02 – Code style and verification

03 – Module packing

04 – React

05 – Style

06 – routing

07 – State management

08 – test

09 – monitoring

10 – to deploy