Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 792 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 792 Bytes

Roadman - for chat and groups

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