Skip to content

Commit

Permalink
fix: updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
akeshavan committed Mar 16, 2018
1 parent 69700c4 commit 14f7ac8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,37 @@
```

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

```
settings: {
admins: {
your_username: true,
},
}
users: {
your_username: {
admin: true
}
}
```
7. Go to the uploads tab and upload a few images. They need to be unique filenames
8. Also host your images somewhere else (like S3), it will be cheaper to pull images from there instead of firebase
7. Upload a JSON file w/ pointers to your images into a key-value pair called `imageCount`:
```
[
imageFilename1: {
ave_score: 0,
num_votes: 0
},
...
]
```

Your database should look like:

![](braindr-databaseSetup.png)

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`
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
10. Start playing

Expand Down
Binary file added braindr-databaseSetup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14f7ac8

Please sign in to comment.