Giter Site home page Giter Site logo

cnode-client's Introduction

React 示例项目 · cnodejs.org论坛客户端

基于Yeoman React Webpack Generators 构建

目录


详情可参阅 package.json

  • React 15.3.1
  • Redux
  • react-router
  • react-router-redux
  • isomorphic-fetch
  • Webpack
  • ES6 + Babel
  • Material UI

在开始前,希望您已通读如下资料

同时您还需要熟悉 ES6

建议升级到 node 6.x + npm 3.x 环境 推荐使用 cnpm 或手动切换到淘宝 npm 源 npm set registry https://registry.npm.taobao.org/

本示例项目需要结合 cnodejs.org论坛 RESTful API
模拟前后端分离开发 git clone后,打开命令窗口切换到工程目录下
敲下 npm install 安装依赖,npm安装如若失败,建议使用cnpm替代

在命令窗口敲下 npm start
如无意外,默认浏览器就会自动打开 localhost:8000,您立即可以看到效果
若浏览器没有自动弹出,则请自行手动访问

开发过程中,通过 Webpack 处理的静态资源都由基于内存的 webpack-dev-server 提供


.
├─ cfg/              # Webpack 配置目录
├─ dist/             # build 生成的生产环境下的项目
├─ src/              # 源码目录(开发都在这里进行)
│   ├─ components/     # 组件(COMPONENT)
│   ├─ actions/        # (Redux ACTION)
│   ├─ reducers/       # (Redux REDUCER)
│   ├─ store/          # (Redux STORE)
│   ├─ routes/         # 路由(ROUTE)
│   ├─ constants/      # 常量
│   ├─ utils/          # 工具库(UTIL)
│   ├─ images/         # 图片
│   ├─ styles/         # 样式
│   ├─ index.js        # 启动文件
│   ├─ index.html      # 静态主页
├── test/           # 测试相关
├── .babelrc         # Babel 转码配置
├── .eslintrc        # ESLint 配置
├── .gitignore       # (配置)需被 Git 忽略的文件(夹)
├── package.json     # (不多解释)

cnode-client's People

Contributors

terevor avatar

Watchers

 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.