@roadmanjs/chat
v1.1.5
Published
A roadman for chat and groups
Downloads
32
Readme
A Roadman for chat and groups, using UserType from 'auth'
How to use
yarn add @roadmanjs/auth @roadmanjs/chat
app.ts
import roadman from 'roadman';
import {getAuthResolvers} from '@roadmanjs/auth';
import {getChatResolvers} from '@roadmanjs/chat';
await roadman({
resolvers: [...getAuthResolvers(), ...getChatResolvers(), ...MyOtherResolvers]
});
Env required
DEBUG=roadman*
# Firebase service account json string
FIREBASE_SA={"firebase admin service account": ""}
# Couchbase envs
COUCHBASE_URL=
COUCHBASE_BUCKET=
COUCHBASE_USERNAME=
COUCHBASE_PASSWORD=
# Any random ass access token generator secrets
ACCESS_TOKEN_SECRET=xxxxx
REFRESH_TOKEN_SECRET=xxxx