• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

react-start-kit-flux-demo: 使用react-start-kit+flux 创建的获取多条数据demo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

react-start-kit-flux-demo

开源软件地址:

https://gitee.com/wengcd/react-start-kit-flux-demo

开源软件介绍:

React Starter Kit — "isomorphic" web app boilerplate

Support us on Bountysource

React Starter Kit is an opinionatedboilerplate for web development built on top of Facebook'sReact library,Node.js / Express serverand Flux architecture. Containingmodern web development tools such as Webpack,Babel and BrowserSync.Helping you to stay productive following the best practices. A solid startingpoint for both professionals and newcomers to the industry.

Demo: http://demo.reactstarterkit.com  | Join #react-starter-kit chatroom on Gitter to stay up to date.

Documentation

Directory Layout

.├── /build/                     # The folder for compiled output├── /docs/                      # Documentation files for the project├── /node_modules/              # 3rd-party libraries and utilities├── /src/                       # The source code of the application│   ├── /actions/               # Action creators that allow to trigger a dispatch to stores│   ├── /api/                   # REST API / Relay endpoints│   ├── /components/            # React components│   ├── /constants/             # Constants (action types etc.)│   ├── /content/               # Static content (plain HTML or Markdown, Jade, you name it)│   ├── /core/                  # Core components (Flux dispatcher, base classes, utilities)│   ├── /decorators/            # Higher-order React components│   ├── /public/                # Static files which are copied into the /build/public folder│   ├── /stores/                # Stores contain the application state and logic│   ├── /utils/                 # Utility classes and functions│   ├── /app.js                 # Client-side startup script│   ├── /config.js              # Global application settings│   ├── /routes.js              # Universal (isomorphic) application routes│   └── /server.js              # Server-side startup script├── /tools/                     # Build automation scripts and utilities│   ├── /lib/                   # Library for utility snippets│   ├── /build.js               # Builds the project from source to output (build) folder│   ├── /bundle.js              # Bundles the web resources into package(s) through Webpack│   ├── /clean.js               # Cleans up the output (build) folder│   ├── /config.js              # Webpack configuration for application bundles│   ├── /copy.js                # Copies static files to output (build) folder│   ├── /deploy.js              # Deploys your web application│   ├── /serve.js               # Launches the Node.js/Express web server│   └── /start.js               # Launches the development web server with "live reload"│── package.json                # The list of 3rd party libraries and utilities└── preprocessor.js             # ES6 transpiler settings for Jest

Getting Started

Just clone the repo and start hacking:

$ git clone -o react-starter-kit -b master --single-branch \      https://github.com/kriasoft/react-starter-kit.git MyApp$ cd MyApp$ npm install                   # Install Node.js components listed in ./package.json$ npm start                     # Compile and launch

How to Build

$ npm run build                 # or, `npm run build -- release`

By default, it builds in debug mode. If you need to build in releasemode, just add a -- release flag. This will optimize the output bundle forproduction.

How to Run

$ npm start                     # or, `npm start -- release`

This will start a light-weight development server with "live reload" andsynchronized browsing across multiple devices and browsers.

How to Deploy

$ npm run deploy                # or, `npm run deploy -- production`

For more information see tools/deploy.js.

How to Update

You can always fetch and merge recent changes from this repo back intoyour own project:

$ git checkout master$ git fetch react-starter-kit$ git merge react-starter-kit/master$ npm install

How to Test

Run unit tests powered by Jest with the followingnpm command:

$ npm test

Test any javascript module by creating a __tests__/ directory wherethe file is. Append -test.js to the filename and Jest will do the rest.

Related Projects

Learn More

Support

License

Copyright © 2014-2015 Kriasoft, LLC. This source code is licensed under the MITlicense found in the LICENSE.txtfile. The documentation to the project is licensed under theCC BY-SA 4.0 license.


Made with ♥ by Konstantin Tarkus (@koistya) and contributors


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap