codeformilwaukee / DECARCERATION-PLATFORM

https://wisdp.com
GNU General Public License v3.0
18 stars 17 forks source link

Quality of Life (Dev):: maintainers cannot view their frontend changes due to dependencies on firebase credentials #106

Open paul-rinaldi opened 3 years ago

paul-rinaldi commented 3 years ago

Describe the bug To develop well, developers need to see the impact they are having.

To Reproduce Steps to reproduce the behavior:

  1. cd web-app
  2. run: npm start
  3. Navigate to Services Page
  4. Observe the map not loading, though the services does load with initial mock service provider data

Expected behavior The developer environment should match as closely to prod as possible.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Quickest solution (best) might be to ensure that we always have mocked up-to-date data checked into the repository as initialState of components before fetches are made using credentials.

Also, am I missing anything in this issue? Comment below. Thanks!!!!

brian221 commented 3 years ago

I believe the way around this is to use the firebase command line tools.

  1. Add any developers with at least a developer role to a non-production instance of the firebase project.
  2. Use the firebase CLI to run using local http functions

https://firebase.google.com/docs/cli#emulate_your_project_using_local_http_functions

brian221 commented 3 years ago

I may be overthinking the issue...you likely have Firebase credentials directly in your UI code. Make those environment variables using .env. Then maintainers can be given a non-prod set of credentials they can use for development.