davidkopp / flying-dutchman

2 stars 0 forks source link

Database refactoring #30

Closed davidkopp closed 2 years ago

davidkopp commented 2 years ago

Closes #28

Refactoring of the database files. We will use DBLoaded.js instead of the JSON files. Why? We have already started using DBLoaded.js.

This PR encapsulates the functions to access the database in a module: DatabaseAPI. To get all beverages from the database you can use DatabaseAPI.allBeverages().