DEMO Application serving as practice for Javascript ES6 iterators, iterables objs and generators.
- The app is run from the command line.
- The user is asked what they ate, and how much.
- Calories of the meal are calculated and displayed.
- List Food Specific to Dietary Preferences
- Terminal Commands implemented through "event listeners"
- Log Food of different portions
- Implemented using Iterators / Generators
- List logged food for a specific day
- Implemented using YIELD Delegation / "Composing generator functions"
Database set up using JSON Server.
-
Readline 🠆 Setup input / output environment
-
JSON Server 🠆 Setup a full fake REST API
Install Dependecies: npm install Install : sudo npm i -g json-server RUN : json-server --watch ./db.json --port 3001 OR : npm run server
-
AXIOS 🠆 Promise based HTTP client.