10min

External Dependency Setup (cloned)

Authentication

Firebase Project Setup

1. Navigate to https://console.firebase.google.com and create a project:

Document image

2. Create an app of type "Web App" or "Javascript" (the third option here):

Document image

3. Navigate to the "Authentication" page:

Document image

4. Select "Sign-in method", enable "Email/Password" and "Google" sign-in methods. At the bottom of the page, enter your newly created domain name:

Document image

Secrets



Note these values down!

For the below instructions, you'll need the output values in the "Configuration and SSL" section. Keep track of them.

1. Navigate to the "Project settings" page:

Document image

2. Under the "General" tab, find the section called "Firebase SDK snippet" and select the "Config" option. Note the javascript object down. The JSON object will be `REACT_APP_FIREBASE_CONFIG_OBJECT`.

Document image

3. Under the "Service Accounts" tab, find the section called "Firebase Admin SDK".

Document image

4. Click "Generate new private key" and keep the file around. The contents will be `[FIREBASE_SECRET](http://google.com)`.

Object Storage

Creating an S3 Bucket

Using the AWS Console, create an S3 bucket with the default settings.

Permissions

In order to have our EC2 instance access the AWS bucket, we need to create an AWS IAM role and associate it with our EC2 instance.

1. Navigate to the AWS IAM page and add a "New User" and select "Programmatic Access".

Document image

2. On "Set permissions" -> "Attach existing policies directly", select "Create Policy", and use the following JSON string as your policy body (replace `my-company-highlight-sessions` with your bucket).

JSON
|

3. Back on the "Add User" page, select the newly created policy and create the user. Make sure to save the user credentials for later steps.