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

Commit ef0e6cb

Browse files
committed
Refine docs
1 parent aa652e0 commit ef0e6cb

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

.env.example

+17-9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
################################
2+
# Stuff that you'll want to edit
3+
4+
# Eventbrite API: See notes in the README about this.
5+
# Client secret
6+
EVENTBRITE_SECRET_KEY=
7+
# API key
8+
EVENTBRITE_PUBLIC_KEY=
9+
# Not sure what this does. Possibly a shared secret for use in the oauth process.
10+
EVENTBRITE_HASH_KEY=correct-horse-battery-staple
11+
12+
# Get this from https://console.cloud.google.com/google/maps-apis/credentials
13+
GOOGLE_MAPS_KEY=
14+
15+
###############################################
16+
# Probably don't need to edit stuff after here.
17+
118
219
CD_BADGES=badges
320
CD_DOJOS=dojos
@@ -9,15 +26,6 @@ EMAIL_DEFAULT_FROM='The CoderDojo Team <[email protected]>'
926
EMAIL_SERVICE=email
1027
EVENTS_SERVICE=events-service
1128
EVENT_URL=http://localhost:8000/events/
12-
# Eventbrite API: get these details from https://www.eventbrite.com/myaccount/apps/
13-
# Client secret
14-
EVENTBRITE_SECRET_KEY=
15-
# API key
16-
EVENTBRITE_PUBLIC_KEY=
17-
# Not sure what this does. Possibly a shared secret for use in the oauth process.
18-
EVENTBRITE_HASH_KEY=correct-horse-battery-staple
19-
# Get this from https://console.cloud.google.com/google/maps-apis/credentials
20-
GOOGLE_MAPS_KEY=
2129
ICS_EVENT_URL=http://localhost:8000/api/3.0/events/
2230
KUE_HOST=kue
2331
KUE_REQUIRED='true'

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ npm-debug.log
77
*.log*
88
cd-db/dumps/*
99
!cd-db/dumps/.gitkeep
10+
.env

README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,22 @@ Note that the Forums and [Badges](installing-badgekit.md) will not be operable
8383
in local development mode, to run these, you need to install both
8484
[NodeBB](https://nodebb.org) and [BadgeKit](installing-badgekit.md) locally, which are a different problem.
8585

86-
87-
## Evironent settings
86+
## Environment settings
8887

8988
All these are in the `.env.example` file, which should be copied to `.env`.
9089
Once copied, you'll want to fill in some of the details. Currently you'll need
91-
keys for Google Maps and Eventbrite.
90+
keys for
91+
[Google Maps](https://console.cloud.google.com/google/maps-apis/credentials)
92+
and [Eventbrite](https://www.eventbrite.ie/myaccount/apps/).
93+
94+
When making changes to your `.env` file, you'll want to run
95+
`docker-compose up -d` to ensure environment changes are propagated to the
96+
appropriate containers.
97+
98+
**NB** when configuring your Eventbrite API key, you'll need to set the
99+
*OAuth Redirect URI* on the Key Info page to
100+
`http://localhost:8000/dashboard/edit-dojo-eventbrite` otherwise you'll get a
101+
message about no `redirect_uri` parameter being supplied when connecting.
92102

93103
## Making code changes and working locally
94104

0 commit comments

Comments
 (0)