Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit f115ed3

Browse files
authored
Merge pull request #461 from CoderDojo/update-dev-key
Remote expired dev key from configuration
2 parents 3925a75 + 78b59f8 commit f115ed3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ This is the Dojos service, a backend repository of the [CoderDojo Zen Community
77
If you want to get set up to make a backend contribution, please see the [cp-local-development repository](https://github.com/CoderDojo/cp-local-development).
88

99
General documentation is in the [community-platform repository](https://github.com/CoderDojo/community-platform).
10+
11+
## Google Maps API key for development
12+
13+
This service needs a Google Maps API key for geolating dojos. It is set by the environment variable `GOOGLE_MAPS_KEY`. You should have this in your environment before starting the service. If you're using the `cp-local-development` repo, you should put it in your `.env` file in that repo before starting the containers.
14+
15+
Rather than share our dev API key here in the repo, you should set up your own key [on the Google Maps API console](https://console.cloud.google.com/google/maps-apis/credentials). For engineers at the RPF, we have a key there called `Backend Dev Api Key`, and you should add your IP address to the list of permitted addresses there.
16+
17+
**NB** Do not add it to `config/development.env` as you may end up accidentally commiting your key.
18+

config/development.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ MAIL_PASS=0383c445ef22d4
1111

1212
HOSTNAME=localhost
1313

14-
GOOGLE_MAPS_KEY=AIzaSyAWA2gcHWQsS7Snr_p86QUxGwM0hBn95pQ
1514
GOOGLE_API_ENABLED=false

0 commit comments

Comments
 (0)