PrangonGhose / Calorie-Counter

The aim of this project is to create a Calorie Counter as the final project for the masters course of Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calorie Counter

πŸ“— Table of Contents

πŸ“– Project Name

Calorie Counter

About this project

The aim of this project is to create a Calorie Counter as the final project for the masters course of Python.

πŸ›  Built With

  • Python

Key Features

  • The program can display a list of items as menu by reading data from a JSON file. As an added advantage, only updating the JSON file can update the menu and entire order taking process in the next run.
  • The user can choose what to order by simply typing the names of the food items available in the order. Invalid or spelling mistakes in an order will be displayed to the user for correction.
  • A valid order will create an Order object and will go through a process of calorie and price counting after which total calorie and total price will be displayed to the user.
  • Order will be refused if the total calorie is more than 2000.
  • All orders are stored in a JSON file and can be visualized using matplotlib by running visualize.py file. The all_orders.json file is initially populated for visualization purpose.
  • Running only the main.py drives the whole program to return the desired output.

(back to top)

πŸ’» Getting Started

To clone the repository in local environment try following steps.

Prerequisites

  • A web browser like Google Chrome.
  • A code editor like Visual Studio Code with Git and Python3.
  • Matplotlib

You can check if Git is installed by running the following command in the terminal.

$ git --version

Likewise for Node.js and npm for package installation.

$ python --version

Setup

Clone the repository using this link.

Install

In the terminal, go to your file directory and run this command.

$ git clone https://github.com/PrangonGhose/Calorie-Counter.git

Get into development

In the terminal, run these commands to get into development.

$ cd Calorie-Counter

$ python main.py

πŸ‘₯ Authors

πŸ‘€ Prangon Ghose

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome! Add suggestions by opening new issues.

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Give a ⭐️ if you like this project!

(back to top)

πŸ™ Acknowledgments

Authors would like to thank:

(back to top)

About

The aim of this project is to create a Calorie Counter as the final project for the masters course of Python.


Languages

Language:Python 100.0%