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().
Closes #28
Refactoring of the database files. We will use
DBLoaded.js
instead of the JSON files. Why? We have already started usingDBLoaded.js
.This PR encapsulates the functions to access the database in a module:
DatabaseAPI
. To get all beverages from the database you can useDatabaseAPI.allBeverages()
.