Giter Club home page Giter Club logo

yzone-react's Introduction

技术栈说明

  • 主要使用 webpack + react + react-router-dom + redux + antd-mobile 进行快速开发的一个DEMO
  • 对axios进行了底层request、response拦截配置
  • 引入调用友空间原生能力SDK
  • 支持开发环境代码热更新

开发环境

  1. npm install
  2. npm run dev
  3. 浏览器访问:http://localhost:8080

测试环境打包

  • npm run test-build

预发布环境打包

  • npm run prev-build

生产环境打包

  • npm run prod-build

目录说明

├── package.json
├── postcss.config.js
├── readMe.md
├── src
│   ├── assets                              静态资源目录(参与业务,参与打包)
│   │   ├── font
│   │   ├── images
│   │   │   └── ico.ico
│   │   └── styles
│   │       ├── common.less                 公共样式
│   │       └── global.less                 全局样式变量
│   ├── components                          组件库目录
│   │   └── common                          公共组件
│   │   └── business                        业务组件
│   ├── config
│   │   ├── config.js
│   │   └── http.js
│   ├── main.js                             主入口文件
│   ├── pages                               业务页面
│   │   ├── App.js                          主组件
│   │   ├── detail
│   │   │   ├── detail.less
│   │   │   └── index.js
│   │   └── home
│   │       ├── home.less
│   │       └── index.js
│   ├── routes
│   │   └── index.js                        路由文件
│   ├── static                              静态资源(不参与打包)
│   │   ├── SDK                             第三方SDK
│   │   │   └── esn.min.js                  友空间SDK
│   │   └── styles                          公共样式
│   │       └── normalize.css               重置样式
│   ├── store                               状态管理
│   │   ├── actions
│   │   │   ├── index.js
│   │   │   └── user.js
│   │   └── reducers
│   │       ├── index.js
│   │       └── user.js
│   ├── template                            模板文件
│   │   └── index.html
│   └── utils                               工具目录
└── webpack                                 webpack配置目录
    ├── base.js                             基础配置
    ├── dev.js                              开发环境配置
    ├── preview.js                          预发布环境配置
    ├── production.js                       生产环境配置
    └── test.js                             测试环境配置

发送异步请求

antd-mobile UI框架

接入友空间原生能力

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.