GithubHelp home page GithubHelp logo

vip-cms-admin's Introduction

📦 使用

$ yarn

$ yarn start

🔨 构建

$ yarn build(生产)

$ yarn build:test(测试)

🖥 配置

查看 craco

⌨️ 环境要求

🧰 技术概览

  • 💎 Hooks: 使用最新的 react hooks API 代替传统的 class API
  • 💡 TypeScript: 应用程序级 JavaScript 的语言
  • 📜 区块: 通过区块模板快速构建页面
  • 🚀 最新技术栈: 使用 typescript + react + @reduxjs/toolkit + react-router-dom + react-redux + antd + @ant-design/pro-components 等前端前沿技术开发
  • ⚙️ 最佳实践: 良好的工程实践助您持续产出高质量代码
  • 🔢 Mock 数据: 实用的本地数据调试方案
  • 🌐 国际化: 内建业界通用的国际化方案
  • 使用: 完整的文档和详细的注释,无阻碍使用

🖊️ 命名规范,书写规范

  • 文件目录:按照业务功能划分
  • 组件:文件名+index.tsx,使用 hooks 方式编写组件
  • scss 文件命名格式:*.scoped.scss
  • API:编写 api 响应和参数的类型,使用 useHttp 请求数据
  • 数据管理:绝大多数页面的数据流转都是在当前页完成,在页面挂载的时候请求后端接口获取并消费,一些公共的数据存放在 sotre
  • _ vscode 安装插件:prettier, stylelint, eslint, ts-react-snippets _

📁 文件夹结构

  • /api:接口管理
  • /assets:静态文件,图片,css,字体
  • /common:处理公共业务,路由管理
  • /components:公共组件
  • /config:系统设置
  • /hooks:公共 hooks
  • /layouts:系统白名单和用户界面布局
  • /locales:国际化翻译
  • /router:路由管理
  • /store:数据管理
  • /types:请求响应和参数的定义
  • /utils:通用方法

🔐git 规范

  • 需求分支:feature/*
  • bug 分支:bug_fix/*
  • merge request: develop-> (feature/_ | bug_fix/_) -> develop -> main

vip-cms-admin's People

Stargazers

Roman avatar

Watchers

full avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.