Skip to content

Commit 14f7ac8

Browse files
committed
fix: updated README
1 parent 69700c4 commit 14f7ac8

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,37 @@
2727
```
2828

2929
5. run the app: `npm run dev` and open `localhost:8080`. Create a new account
30-
6. Go to the Database tab in Firebase. Create a key value pair like this:
30+
6. Go to the Database tab in Firebase. Create key value pairs like this:
3131

3232
```
3333
settings: {
3434
admins: {
3535
your_username: true,
36+
},
37+
}
38+
39+
users: {
40+
your_username: {
41+
admin: true
3642
}
3743
}
3844
```
39-
7. Go to the uploads tab and upload a few images. They need to be unique filenames
40-
8. Also host your images somewhere else (like S3), it will be cheaper to pull images from there instead of firebase
45+
7. Upload a JSON file w/ pointers to your images into a key-value pair called `imageCount`:
46+
```
47+
[
48+
imageFilename1: {
49+
ave_score: 0,
50+
num_votes: 0
51+
},
52+
...
53+
]
54+
```
55+
56+
Your database should look like:
57+
58+
![](braindr-databaseSetup.png)
59+
60+
8. Also host your images somewhere else (like S3), it will be cheaper to pull images from there instead of firebase. The images will be found at: `https://yourS3bucket/imageFilename1.jpg`
4161
9. Edit the `imageBaseUrl` in `src/components/Play.vue` to point to your images. The url will have the image name appended to the end with the `.jpg` extension
4262
10. Start playing
4363

braindr-databaseSetup.png

36.2 KB
Loading

0 commit comments

Comments
 (0)