Coder Social home page Coder Social logo

rabbit-www's Introduction

描述

Dva + Umi + Antd 的简单脚手架,会结合一些常用工具类。

如何运行项目

需具备node环境, 自行安装

# 安装依赖环境
npm install

# 运行项目, 运行后访问 http://localhost:8000/
npm start

# 编译项目, 编译后会在当前项目根目录生成`dist/`文件夹
npm build

项目整体结构说明

.
├── docker                          // docker 相关脚本[开发阶段使用]
│   ├── docker-compose.dev.yml
│   ├── docker-compose.yml
│   └── nginx.conf
├── docs                            // 其他相关文件
├── scripts                         // 脚本文件
├── mock                            // mock 相关文件[与API接口一一对应]
│   ├── api.js
│   └── utils
├── src                             // 源码
│   ├── api                         // API 接口
│   ├── assets                      // 图片资源
│   ├── components                  // 组件
│   ├── models                      // dva model
│   ├── pages                       // 页面
│   ├── utils                       // 工具包(主要包含: 请求封装, 常量定义, 格式化工具)
│   ├── global.css                  // 全局css
│   ├── config.ts                   // 全局配置(主要包含: 环境配置)
│   ├── layouts                     // 顶层布局
│   └── mixin.less                  // 通用less
├── Dockerfile                      // Docker 构建文件
├── Dockerfile.dev                  // Docker 构建文件(Mock 模式)
├── CHANGELOG.md                    // 更新日志
├── README.md                       // README.md
├── package.json
├── package-lock.json
└── yarn.lock

dva model 文件说明

.
├── .tpl.js             // 模板文件
└── app.js              // 全局 model

相关url说明

  • 路径命名全小写,单词之间用"-"分隔。例如: /hello-world
  • 传参统一使用 URL 进行传递。例如: /hello-world?lang=java
  • /test: 测试页面

更新日志

更新日志

rabbit-www's People

Contributors

hocgin avatar

Watchers

James Cloos avatar  avatar egan 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.