Skip to content

The backend code of firestore client for React Social Network

License

Notifications You must be signed in to change notification settings

shellen/firestore-social-backend

 
 

Repository files navigation

firestore-social-backend built for react-social-network

Getting Started

I recommend read firbase instruction first, then continue installation.

Prerequisites

Install NodeJs

Note

  • If you're using Windows you should install all node-gyp dependencies with following commands:

$ npm install --global --production windows-build-tools and then install the package

$ npm install --global node-gyp

Installing

Install back-end server/serverless

  1. Fork the firestore-social-backend repository on Github
  2. Clone your fork to your local machine
    git clone git@github.com:<yourname>/firestore-social-backend.git
  3. Go to the project root directory
    cd firestore-social-backend
  4. Installing all nodejs modules:
    cd functions && npm install
  5. Configure firebase:
    • In command line of [react-social-network] root project, type firebase login. This command connects your local machine to your Firebase account and grants access to your projects. To test that authentication worked, you can run firebase list to see a list of all of your Firebase projects. The list should be the same as the projects listed at Firebase console.
    • Be sure the name of firebase project for [react-social-network] and this project is same. You also need to check .firebaserc if you set correct project name in default field of projects field.
  6. Set the gmail.email and gmail.password Google Cloud environment variables to match the email and password of the Gmail account used to send emails (or the app password if your account has 2-step verification enabled). The recaptcha.secretKey key is using for recaptcha secret key in SMS verification. The phone.sourceNumber, plivo.authId and plivo.authToken are configuration from Plivo SMS Service in SMS verification .For this use:
    firebase functions:config:set gmail.email="myusername@gmail.com" gmail.password="secretpassword" recaptcha.secretkey="secretKey" phone.sourcenumber="sourceNumber" plivo.authid="authId" plivo.authtoken="authToken" setting.appname="App Name"
  7. Deploy ;)
 npm start

About

The backend code of firestore client for React Social Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%