In order to solve the exam assignment, you have to hook up to a server we've built.
You only need one server per group, so choose one to do it.
- Go to Heroku.com and sign up for a free account.
- Once signed up, click this link
- That will start the deployment of a new server.
- Pick a unique name for it
- and choose Europe as the location
- Click "Deploy App"
- Once it's complete you can click "open" or was it "view app"?
- That should give you a lot of JSON
- You're almost done. But in order for the kegs not to run out, you should restart the server every morning. You do that by going to Heroku.com, logging in and clicking "Restart all dynos"
The server will give you three endpoints
The default endpoint. Hit this often to get new data
Static endpoint. Contains descriptions of all beers. You can hit this once. The beers won't change
Send a post request with the following payload/footprint
[
{ name: "Hoppily Ever After", amount: 1 },
{ name: "Row 26", amount: 2 },
];