project Settings
this steps for production and local installation
- after download, you will have
source.zip
unzip this file you will getv_chat_sdk_backend
folder - which contain typescript files
.env
file
IS_USER_ONE_SIGNAL_AND_NO_FIREBASE
I have made this chose because firebase forbidden from some country I recommend to userfirebase
currentonesignal
not supported- if =
true
then you must create account on one signal and provideONESIGNAL_AUTHORIZATION
value to start use intestinal instead of firebase iftrue
then the app will user firebase to pushnotifications
ACCESS_TOKEN_SECRETE
update this value with strong password and don't change it ever will course all users logout if you change it in productionMONGODB_URL
mongo db url if you will run it locally then doesn't change itENABLE_MIGRATE_OLD_USERS
if your app already in production then update this value to true to enable migrate api to worksENABLE_MIGRATE_OLD_USERS
after finish with migrate old users you must update this value too false to disable the add users apiMAX_CHAT_FILES_SIZE
set limit to chat share files and videosPASSWORD_HASH_KEY
set storage password has key make sure it same key with flutter side other users can register only and cant login it will say invalid credentialsMAX_GROUP_USERS_COUNT
set limit to max group countMACHIN_PUBLIC_URL
your server public key (required only for show big image notification in android)
don't update the .env
ACCESS_TOKEN_SECRETE
orPASSWORD_HASH_KEY
everPASSWORD_HASH_KEY
must be same with flutter side other login will fail !!!
update default users image
- open
v_chat_sdk_backend/public/profile/default_user_image.png
- update
default_user_image.png
make sure this image smaller than300KB
and with the same name asdefault_user_image.png
Firebase Admin sdk
- the firebase project must be the same as flutter side
- if you set
IS_USER_ONE_SIGNAL_AND_NO_FIREBASE
=false
then you must provide yourfirebase-adminsdk.json
file - first open firebase console create or open existing firebase account
- and navigate to
project setting
thenservice accounts
then generate new private key selectNode.js
- after download
firebase-adminsdk.json
update this file by your firebase generated file but rename it tofirebase-adminsdk.json
One Single setup (coming soon)
- if you set
IS_USER_ONE_SIGNAL_AND_NO_FIREBASE
=true
then you must provide yourONESIGNAL_AUTHORIZATION
- create or open new account on onesignal app
- add new android and ios apps add your firebase sender id and token
- then open dashboard/settings/Keys&IDs copy Rest API Key
- paste it in
ONESIGNAL_AUTHORIZATION
don't deleteBasic
just update"Basic M2Ey--------------------BlNWY5"
M2Ey--------------------BlNWY5 and leave the space between theBasic
and your rest api key
other
- don't update any package on
package.json
let me update and test then push to you