CCExtractor / beacon

Flutter application to share location with a group. (under development)
58 stars 148 forks source link

i have forked and cloned the repo in env.example file value of google maps api key for android and ios is missing what should i do pls help #174

Closed anmolkulshrestha closed 1 year ago

pnkr01 commented 1 year ago

Given example inside .env.example is

ANDROID_MAP_API_KEY= IOS_MAP_API_KEY= HTTP_ENDPOINT=<server's_HTTP_endpoint>(for example: https://beacon.aadibajpai.com/graphql) WEBSOCKET_ENDPOINT=<server's_websocket_endpoint>(for example: wss://beacon.aadibajpai.com/subscriptions)

  1. rename .env example to .env only

image

  1. go to https://console.cloud.google.com/
    • sign in
    • go to library
    • enable Map SDk for Android and for iOS
  2. Go to credentials
    • from the top create credential image
    • copy the key and paste in the .env file

for HTTP_ENDPOINT=https://beacon.aadibajpai.com/graphql WEBSOCKET_ENDPOINT=wss://beacon.aadibajpai.com/subscriptions

@anmolkulshrestha

Use this, and after that, run the app; it will run. I'm also new here, and this may not be the best way to get started, but it gets the app running. I'll investigate further and learn more about this. There's also a great message for this doubt in Slack chat in #gsoc-beacon, answered by Aadeesh Oswal. I hope this helps. 

ItsAdityaKSingh commented 1 year ago

Thanks @pnkr01 for the input! The following env variables will not be working as they are inactive now: HTTP_ENDPOINT=https://beacon.aadibajpai.com/graphql WEBSOCKET_ENDPOINT=wss://beacon.aadibajpai.com/subscriptions @anmolkulshrestha, you need to run the beacon backend locally and put the variables you get using it. Rest is as usual. You will be able to run the app using it.

ItsAdityaKSingh commented 1 year ago

Closing the issue as not really one! Also, you could use Slack channel to clarify doubts if any.