Skip to content

jonasholbech/foobarnodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front End Design Elective

Autumn 2021

What is this?

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.

  1. Go to Heroku.com and sign up for a free account.
  2. Once signed up, click this link
    Deploy
  3. That will start the deployment of a new server.
  4. Pick a unique name for it
  5. and choose Europe as the location
  6. Click "Deploy App"
  7. Once it's complete you can click "open" or was it "view app"?
  8. That should give you a lot of JSON
  9. 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"

Endpoints

The server will give you three endpoints

GET /

The default endpoint. Hit this often to get new data

GET /beertypes

Static endpoint. Contains descriptions of all beers. You can hit this once. The beers won't change

POST /order

Send a post request with the following payload/footprint

[
  { name: "Hoppily Ever After", amount: 1 },
  { name: "Row 26", amount: 2 },
];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published