Skip to content

Latest commit

ย 

History

History
192 lines (147 loc) ยท 8.81 KB

README.en.md

File metadata and controls

192 lines (147 loc) ยท 8.81 KB

React template



็ฎ€ไฝ“ไธญๆ–‡ | English

๐Ÿ”— Demo

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Project Description

๐Ÿ“ฑ Features

  • ๐Ÿ“ฆ Out of the box, no configuration required.
  • ๐Ÿ“ Comprehensive comment explanations, low learning cost.
  • ๐Ÿš€ Fast startup and compilation.
  • ๐ŸŒฑ Highly customizable, easy to expand.

๐Ÿš€ Technology Stack

react TypeScriptwebpack axios mobx react-router-dom MIT

  • React v18
  • react-dom v18
  • React Hook
  • TypeScript v4
  • webpack v5
  • axios v1
  • mobx v6
  • mobx-react-lite v3
  • react-router-dom v6

๐ŸŽ„ Upcoming Features:

โŒ›๏ธ Install project dependencies

  • npm >= 6.14.x
  • node >= 16.30.x
npm
$ npm install

yarn
$ yarn

๐Ÿš€ Run the project

npm
$ npm run start

yarn
$ yarn dev

๐Ÿ“ฆ Packaging and compilation

npm run build:qa  // Testing environment
npm run build:prod  // Production environment

๐Ÿท Branch description

Branch description
main Main branch
deploy demo deploy
dev Development branch

Code submission specification

git <type>: <subject>
git commit -m "feat: Project initialization"

type ๅ‚่€ƒ:

fix       ๐Ÿ› Bug fix
feature   โœจ Introduce new features
docs      ๐Ÿ“ Document writing changes
prune     ๐Ÿ”ฅ Remove code or files
ui        ๐Ÿ’„ Update UI and style files
perf      โšก Performance-related optimizations
rocket    ๐Ÿš€ Deployment function
style     ๐ŸŽจ Style modification
init      ๐ŸŽ‰ Initial submission
release   ๐Ÿ”– Release version
wip       ๐Ÿšง Work in progress, and unstable submissions may occur
config    ๐Ÿ”ง Modify configuration file
refactot  ๐Ÿ”จ Refactoring (code changes that neither add new features nor fix bugs)
merge     ๐Ÿ”€ Merge branches

๐Ÿ“‚ Directory Structure

    โ”œโ”€โ”€ .vscode
    โ”‚   โ””โ”€โ”€setting.json                 # Configuration for vscode that takes precedence over global settings.json
    โ”œโ”€โ”€ doc                             # Development documentation
    โ”œโ”€โ”€ webpack                         # Packaging and compilation
    โ”‚   โ””โ”€โ”€config                       # Webpack configuration
    โ”‚       โ”œโ”€โ”€ webpack.common.js       # Base configuration
    โ”‚       โ”œโ”€โ”€ webpack.dev.js          # Development environment configuration
    โ”‚       โ””โ”€โ”€webpack.prod.js          # Production environment configuration
    โ”œโ”€โ”€ pubilc
    โ”‚   โ”œโ”€โ”€favicon.ico                  # HTML icon
    โ”‚   โ””โ”€โ”€index.html                   # HTML entry template
    โ”œโ”€โ”€ src
    |   โ”œโ”€โ”€ api                         # Interface configuration
    |   โ”œโ”€โ”€ assets                      # Static resources
    โ”‚   โ”œโ”€โ”€ components                  # Common components of the project
    โ”‚   โ”œโ”€โ”€ http                        # Unified encapsulation of requests
    โ”‚   โ”œโ”€โ”€ httpinterface               # TypeScript type definition
    โ”‚   โ”œโ”€โ”€ constData                   # Constant list within the system
    โ”‚   โ”œโ”€โ”€ router                      # Unified routing entry
    โ”‚   โ”œโ”€โ”€ store                       # Data sharing
    โ”‚   โ”œโ”€โ”€ styles                      # Global style
    โ”‚   โ”œโ”€โ”€ utils                       # Utility library
    โ”‚   โ”œโ”€โ”€ view                        # Pages
    โ”‚   โ”œโ”€โ”€ App.tsx                     # Main interface
    โ”‚   โ””โ”€โ”€index.tsx                    # Entry file
    โ”œโ”€โ”€ .babelrc.js                     # Babel configuration
    โ”œโ”€โ”€ .editorconfig                   # Maintaining consistent coding style across editors
    โ”œโ”€โ”€ .env.json                       # Environment variable configuration
    โ”œโ”€โ”€ .eslintignore                   # Files ignored by ESLint
    โ”œโ”€โ”€ .eslintrc.js                    # ESLint configuration
    โ”œโ”€โ”€ .gitignore                      # Files ignored by git submission
    โ”œโ”€โ”€ .npmrc
    โ”œโ”€โ”€ .prettierignore                 # Files ignored by prettierc
    โ”œโ”€โ”€ .prettierrc                     # Prettierc configuration
    โ”œโ”€โ”€ .stylelintrc.js                 # Code style configuration
    โ”œโ”€โ”€ LICENSE                         # Open source license
    โ”œโ”€โ”€ package-lock.json               # npm package lock management
    โ”œโ”€โ”€ package.json                    # Dependency management
    โ”œโ”€โ”€ README.md                       # Project description
    โ”œโ”€โ”€ tsconfig.json                   # TypeScript configuration file
    โ””โ”€โ”€ yarn.lock                       # Yarn package lock management


๐Ÿ“š Development reference

๐Ÿค How to Contribute

  • ๐Ÿ“ฌ If you have any questions, please open an issue or leave a message
  • ๐Ÿง™โ€โ™€๏ธ Welcome all contributors, come to Issus or submit Pull Requests to become a contributor

โญ๏ธ Stargazers

Stargazers repo roster for @guokaigdg/react-enterprise-template

๐Ÿ’ก Open Source License

The code and documentation of this project are released under the MIT License open source license.