Coder Social home page Coder Social logo

liqian008 / react-antd-admin-simplatetemplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liyanyan1994/react-antd-admin-simplatetemplate

0.0 0.0 0.0 28 KB

基于react-router4.x的antd风格后台管理系统通用模板

JavaScript 87.95% CSS 7.96% HTML 4.09%

react-antd-admin-simplatetemplate's Introduction

##基于react+antd+react-router+redux+mock后台管理系统

##运行环境说明

react V16.2.0

react-router-dom V4.2.2

antd V3.1.1

node V6.11.0

##效果图

项目说明

最近很闲,开始学习react,在github上找了好久没有发现使用最新的react-router V4.X以上的后台管理系统.
主要是路由的嵌套,相对于V2.x的变化还是很大的。
之前在公司都是使用的vue的全家桶,react也相对的类似,决定自己来写一个简单的后台系统模板。

本项目是基于React的脚手架crate-react-app,增加了sass
react-router使用的最新的4.2刚开始看着很抠脚,主要是子路由的嵌套,还研究了半天,里面还有些坑。像子组件接受不到路由,可以使用withRouter

项目写得很基础适合刚入门,可以根据自己的需求进行改写,当然还有很可以进行改进的地方.

技术文档

使用项目

注意npm install的时候若node-sass安装不上请使用cnpm

目录结构

├── build                           // 构建相关  
├── public                          // 公用模板
├── src                             // 源代码
│   ├── api                         // 所有请求
│   ├── assets                      // 存放图片等静态资源
│   ├── components                  // 全局公用组件
│   ├── mock                        // 项目mock 模拟数据
│   ├── router                      // 路由
│   ├── utils                       // 全局公用方法
│   ├── views                       // views
│   ├── index.css                   // 全局css样式
│   ├── index.js                    // 入口js 初始化 加载组件等
│   ├── logo.svg                    // log图标
│   └── registerServiceWorker.js    // 本地创建service worker 
├── .gitignore                      // git 忽略项
├── package-lock.json               // package.json
└── package.json                    // package.json

react-antd-admin-simplatetemplate's People

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.