You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,17 +27,37 @@
27
27
```
28
28
29
29
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:
31
31
32
32
```
33
33
settings: {
34
34
admins: {
35
35
your_username: true,
36
+
},
37
+
}
38
+
39
+
users: {
40
+
your_username: {
41
+
admin: true
36
42
}
37
43
}
38
44
```
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
+

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`
41
61
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
0 commit comments