|
| 1 | +# Game Data Multi-Library - Vue |
| 2 | + |
| 3 | +This library uses the standard Vue template as a foundation. See the details below for running the project. |
| 4 | + |
| 5 | +You will also need to create a `secrets.json` file to store your API credentials. See the section below for more details. |
| 6 | + |
| 7 | +## Recommended IDE Setup |
| 8 | + |
| 9 | +[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). |
| 10 | + |
| 11 | +## Recommended Browser Setup |
| 12 | + |
| 13 | +- Chromium-based browsers (Chrome, Edge, Brave, etc.): |
| 14 | + - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd) |
| 15 | + - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters) |
| 16 | +- Firefox: |
| 17 | + - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) |
| 18 | + - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/) |
| 19 | + |
| 20 | +## Customize configuration |
| 21 | + |
| 22 | +See [Vite Configuration Reference](https://vite.dev/config/). |
| 23 | + |
| 24 | +## Project Setup |
| 25 | + |
| 26 | +```sh |
| 27 | +npm install |
| 28 | +``` |
| 29 | + |
| 30 | +### Compile and Hot-Reload for Development |
| 31 | + |
| 32 | +```sh |
| 33 | +npm run dev |
| 34 | +``` |
| 35 | + |
| 36 | +### Compile and Minify for Production |
| 37 | + |
| 38 | +```sh |
| 39 | +npm run build |
| 40 | +``` |
| 41 | + |
| 42 | +## Client Credentials |
| 43 | + |
| 44 | +You will need to create a file for storing your client credentials. Typically these secrets would be handled through your server environment, but for basic testing you can create this secrets file to immediately test the library. |
| 45 | + |
| 46 | +Reminder: DON'T COMMIT SECRETS TO VERSION CONTROL! |
| 47 | + |
| 48 | +### Twitch Account for Authentication |
| 49 | + |
| 50 | +IGDB is owned and operated by Twitch.tv. In order to authenticate with the api, you will need an active Twitch account and register a developer application with it to acquire a Client ID and Client Secret. See IGDB's documentation here for details: [IGDB Account Creation](https://api-docs.igdb.com/#account-creation) |
| 51 | + |
| 52 | +### Create Secrets File |
| 53 | + |
| 54 | +1. Create a `secrets.json` file at the project root. |
| 55 | +2. Add two fields called `clientId` and `clientSecret`. |
| 56 | +3. Set those values to their respective values from your Twitch Developer App. |
0 commit comments