Get calls to the IGDB API v3 up and running with Vue, Vue CLI, and axios using the built-in proxy server.
- Node and npm (https://www.npmjs.com/get-npm)
- IGDB API v3 Key (https://api.igdb.com/signup)
- Download/clone this repo. Go to repo directory and...
$ npm install
- After install, edit
src/App.vue
with your IGDB API Key and port number of where the app is running locally (usually8080
).
axios({
url: "http://localhost:[PORT_NUMBER]/games",
method: 'POST',
headers: {
'Accept': 'application/json',
'user-key': '[API_KEY]'
},
data: 'fields name; limit 10;'
});
$ npm run serve