- Oauth on Rainbow via ZeroMQ
- Support RPC
- Support GraphQL+RPC
- Support service discovery
- Support Authentication https://github.com/msealand/zmq-zap.node
- Support Authorization
- Support REST+RPC
Content ---[query/mutation]---> Broker ---> Worker
# Config, copy and mod to suite your need
cp .env.example .env
# Start broker
yarn install && yarn start
# Start mongo
yarn run mongo
cd examples/achievements && yarn install && yarn start
cd examples/notifications && yarn install && yarn start
cd examples/comments && yarn install && yarn start
# For develop on macOS
brew install zeromq
- it should separated by services
- it should separated by environments
- it should have
client_id
- it should generate
client_secret
- it should generate
access_token
that containexp
,client_id
- Use MongoDB
- Use Mosca with MongoDB
- Apply scope to Mosca user
- Add Mosca user by service
- it can verify
access_token
byclient_secret
- it should provide
getUserNames
ifaccess_token
is provide. - it should back off wrong request.
- it should have
scope
- it should read only in
scope
- it should generate
refresh_token
that containexp
,client_id
- it can regenerate
access_token
ifrefresh_token
not expire.