项目作者: Sunshine168

项目描述 :
egg+react 的在线协作
高级语言: JavaScript
项目地址: git://github.com/Sunshine168/co-example-server.git
创建时间: 2018-02-22T12:37:39Z
项目社区:https://github.com/Sunshine168/co-example-server

开源协议:

下载


co-example-server by egg

build status
Test coverage

a simple chat room application.

online

font- mobx+react+react-routerv4+socket.io+styled-components+flow

server

test
account:123456789@qq.com password:123123123

account:12345678@qq.com password:123123123

preview




egg skill

basic cover

  • controller
  • service
  • model
  • plugin
  • extend
  • logger
  • validate params
  • test

Advanced

  • middleware —check(not)Login and spa redirect
  • socket.io
  • custom plugin —egg-mongolass
  • deploy
  • err-handler

dev or deploy

ensure node eng > 8.9
redis and mango db are installed

git clone https://github.com/Sunshine168/co-example-server.git

and run

npm install or yarn

before run!!

create count schema in mongodb ,and insert

  1. {
  2. _id: 'room',
  3. sequenceValue: 1000,
  4. }

or in dev mode ,use postman or other utils to post

  1. eg: ```http://localhost:7001/helper/ini-counter

deploy

npm run dev // or yarn dev default run in 7001 port

prod

npm run start --env=prod //or yarn start --env=prod default run in 7001 port