dozoisch/koa-react-full-example
关于
使用 Koa、React、Passport、Mongoose、Webpack、Mocha 和 Babel 的完整示例
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文koa-react-full-example
Full example using Koa, React, Passport, Mongoose, Webpack, Mocha, and on Travis
This example contains a MVC pattern that presents a simple counter to the client that increments and decrements a value in the Mongo Database with Mongoose. The UI is all handled with ReactJS. It uses the yield keyword from ES6.
This projects uses bleeding-edge technology. It also uses unstable version of Mongoose (3.9) for the support of yield.
Prerequisite
Installation
- Checkout in a directory
npm install- Try it and ensure tests pass with
npm run build && npm test
Running the project
To run the project, you need two terminals.
- In the first terminal run
npm run hot-dev-server - In the second terminal run
npm start - Try access
localhost:3000You should normally get the login page. - Create a user using the sign up page "#/signup". It should log you in automatically and you should be redirected to the counter
Build commands
Static Build
npm run build
Running Prod
npm run prod
Run Tests
npm run build && npm test
License
The plugin is under MIT license, please see the LICENSE file provided with the module.
Soon
Updates to come when I get some time:
- Server side rendering with prod webpack config
- Redux
- Code coverage with iSparta istanbul.
- ES6/Babel server side
探索相关项目
加载中…
