Skip to content
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

Use Firebase Emulator in Dev #180

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Use Firebase Emulator in Dev #180

wants to merge 8 commits into from

Conversation

hazel-sudz
Copy link
Member

Closes #175

Note: there are a couple of things that are broken in dev, more specifically the /reports and /admin due to the documents required for those being created on function schedulers which can't be emulated. We might need to hard code the initial database state for that.

@netlify
Copy link

netlify bot commented May 9, 2021

👷 This link represents the deploy preview for this given pr.

Name Link
🔨 Latest commit ce0ddd0
🔍 Latest deploy log https://app.netlify.com/sites/ehs-service/deploys/62c0a7537832140007098b26

@Zjjc123
Copy link
Member

Zjjc123 commented May 9, 2021

Hi @daniel-sudz at 12:44 on a sunday morning

@Zjjc123
Copy link
Member

Zjjc123 commented May 9, 2021

Do we have to change CONTRIBUTING.md and things because how we run the website is different

@hazel-sudz
Copy link
Member Author

Hi @daniel-sudz at 12:44 on a sunday morning

Hi, have you seen me at 5 am on a saturday morning though? what even is a sleep schedule

@Zjjc123
Copy link
Member

Zjjc123 commented May 9, 2021

Hi @daniel-sudz at 12:44 on a sunday morning

Hi, have you seen me at 5 am on a saturday morning though? what even is a sleep schedule

dat physics grind?

Why not combine the start scripts

@hazel-sudz
Copy link
Member Author

Also, the firebaseConfig legit doesn't work like the docs tell you to do it idk: firebase/firebase-js-sdk#4882

Just kind of plugged things in until it worked 🤷‍♂️

@Zjjc123
Copy link
Member

Zjjc123 commented May 9, 2021

I think hard coding the initial database is fine. What if we just take a snapshot of it and store it for testing.

edit: but ig for privacy issues I can fake some data probably

@Zjjc123 Zjjc123 added enhancement New feature or request important Top priority labels May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request important Top priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Developer Workflow: Stubbing authentication
2 participants