Skip to content

本项目是Letga的前端部分,是基于阿里的 AntDesignPro 脚手架搭建的项目。

License

Notifications You must be signed in to change notification settings

lgcgo/letga-frontend

Repository files navigation

介绍

本项目是 Letga 的前端部分,是基于阿里的 AntDesignPro 脚手架搭建的项目。

基于 GoFrame 的 API 后端请前往:LetgaServer

特性

  • 体验佳:AntDesign 设计体系, 简洁一致易用 的设计原则
  • 国际化:使用 @umijs/plugin-locale,中文、英文
  • Mock:为方便前端开发者单独使用,带有一些 LetgaServer 的部分 Mock 数据

使用

  1. 下载代码
git clone https://github.com/lgcgo/letga-frontend.git
cd letga-frontend
  1. 安装依赖
npm install

或者

yarn install
  1. 启动服务
yarn start

Mock 注意

yarn start 启动后默认启动 mock,如果你已经部署并启动 Letga 后端服务或者不需要 Mock 数据,请启动前手动关闭 Mock 功能。

/config/config.ts

export default defineConfig({
  /**
   * @name 开启 mock
   * @description yarn start 默认启动mock。如需关闭请去掉注释
   * @doc https://umijs.org/docs/api/config#mock
   */
  mock: false,
  ...
})

或者执行 no-mock 启动命令

yarn start:no-mock

About

本项目是Letga的前端部分,是基于阿里的 AntDesignPro 脚手架搭建的项目。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published