Skip to content

SAVE/STICKY - Steps for adding new Database / Customer / ORG #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
17 tasks
plinck opened this issue Apr 18, 2020 · 3 comments
Open
17 tasks

SAVE/STICKY - Steps for adding new Database / Customer / ORG #242

plinck opened this issue Apr 18, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@plinck
Copy link
Owner

plinck commented Apr 18, 2020

When creating a new customer, there are many things that need to be done.

  • Create firestore instance with cloud storage, firestore, functions etc
  • Setup service account credentials on google cloud platform to only allow proper URLs to access instance and DB
  • Assign common user ([email protected]) to owner of firebase app
  • Init firebaseapp
  • Setup all google services like maps, directions, etc
    --- maps javascript api
    --- directions API
    --- places API
    --- Maps IOS SDK
    --- distanceMatrix API
  • Setup / associate google billing account
  • Create firestore DB with collection (e.g. SAA) and doc (e.g. prod)
  • Setup firestore rules - copy from another DB
  • Create hidden .env files and scripts for using new ORG
    --- client/functions/.env-strava-config-ORG.json,
    --- client/functions/.serviceAccountKey-ORG.json
    --- client/.env-ORG
    --- client/.firebaserc-ORG
    --- client/scripts/fbSwitchToORG.sh
  • GIve ORG a code (ATC, SAA)
  • Get branding images in correct folder i.e. images/${ORG}/
  • Seed users collection with admin
  • Seed ATCMembers collection (does not NEED documents but collection must exist)
  • Save key icons etc under ORG
  • Create Strava Account. Strava needs to have a new client id and secret for every app. I have one for atc ([email protected]) and one for dev ([email protected]). Unfortunately you must have one for each firestore instance since strava cant handle sending to multiple from one account. SAA Strava id is [email protected]
  • Setup Strava API at strava.com/api and ensure the callback domain is correct
  • Run the Strava API subscription callback either from test strava page on site or Postman
@plinck plinck added the documentation Improvements or additions to documentation label Apr 18, 2020
@plinck
Copy link
Owner Author

plinck commented Apr 18, 2020

Screen Shot 2020-04-18 at 1 25 04 PM

@plinck
Copy link
Owner Author

plinck commented Apr 18, 2020

Screen Shot 2020-04-18 at 1 36 40 PM

@plinck
Copy link
Owner Author

plinck commented Apr 18, 2020

Screen Shot 2020-04-18 at 10 50 30 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant