Skip to content

Sunshine168/co-example-server

Repository files navigation

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

{
       _id: 'room',
       sequenceValue: 1000,
}

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

host:port/helper/init-counter

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

About

egg+react 的在线协作

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published