a simple chat room application.
font- mobx+react+react-routerv4+socket.io+styled-components+flow
test account:123456789@qq.com password:123123123
account:12345678@qq.com password:123123123
- controller
- service
- model
- plugin
- extend
- logger
- validate params
- test
- middleware --check(not)Login and spa redirect
- socket.io
- custom plugin --egg-mongolass
- deploy
- err-handler
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
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
npm run dev // or yarn dev
default run in 7001 port
npm run start --env=prod //or yarn start --env=prod
default run in 7001 port