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

dozoisch/koa-react-full-example: Full example using Koa, React, Passport, Mongoo ...

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

开源软件名称:

dozoisch/koa-react-full-example

开源软件地址:

https://github.com/dozoisch/koa-react-full-example

开源编程语言:

JavaScript 96.4%

开源软件介绍:

koa-react-full-example

Join the chat at https://gitter.im/dozoisch/koa-react-full-example

Pair on this

Build Status dependencies devdependencies Tasks

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

  1. Checkout in a directory
  2. npm install
  3. Try it and ensure tests pass with npm run build && npm test

Running the project

To run the project, you need two terminals.

  1. In the first terminal run npm run hot-dev-server
  2. In the second terminal run npm start
  3. Try access localhost:3000 You should normally get the login page.
  4. 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



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
naihe138/GraphQL-demo: 发布时间:2022-06-24
下一篇:
CoryFoy/DotNetKoans: A set of Koans to teach the DotNet language. Based off of E ...发布时间:2022-06-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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