Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Juliiii/React-Cnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Cnode(本人已停止维护)

react web app, api 由 cnode社区 提供,欢迎大家star和fork

说明与建议

  • 本项目是很久前突发奇想写的,现在由于工作和学习别的知识后,就基本不维护了。
  • 个人发现不少同学是抱着练手的目的,所以个人建议: 可以直接去 cnode社区 (https://cnodejs.org), 阅读他们提供的api, 并根据自己的需求来捣鼓些项目。

技术栈

react + react-router + axios + mobx + mobx-react + antd-mobile

demo

live demo(兼容性,已经尽量去兼容了,如果有问题见谅, ps:本人学生身份已无,代码部署的机器已不继续续费,demo暂时废弃)
images

目录结构

react-cnode/
   |
   ├──icons/                    * 用到的icon
   |
   ├──components/               * 可复用组件
   │
   │──pages/                    * 展示的页面
   |
   ├──store/                    * mobx
   │
   ├──router                    * 路由
   |
   ├──routes/                   * 路由的配置,动态加载
   │
   │──axios/                    * axios的配置文件
   │
   │──utils/                    * 工具函数
   │    |
   |    |—— db.js               * localstorage操作
   |    |
   |    |__ index.js            * 别的工具函数
   │
   │ 
   │——constants/                * 一些常量(其实没怎么用)
   │
   │
   │
   │──index.css                 * 全局的样式,其中也有修改了ant-mobile的样式
   │__index.js                  * 入口文件

TODO

  • 消息

  • 用mobx重构

  • live demo

  • 升级 react-router 到4

如何启动

Step 1

git clone git@github.com:Juliiii/React-Cnode.git

Step 2

npm i

Step 3

npm start

license

No license

About

请star或fork,thx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published