Code Monkey home page Code Monkey logo

myfitness's Introduction

MyFitness

MyFitness is a Django project designed for university purposes, allowing users to track their meal nutrition, set goals for specific calorie, protein, carbs, and fats intake, and monitor their macros. The project utilizes the FoodData Central (FDC) database for nutritional information.

Table of Contents

Getting Started

These instructions will help you set up and run the MyFitness project on your local machine.

Prerequisites

Make sure you have the following installed on your machine:

  • Python (version 3.10)
  • Pip (package installer for Python)

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/varlamzhordania/myfitness.git
  1. Navigate to the project directory:

    cd myfitness
    cd backend
  2. Create a virtual environment (recommended):

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On Unix or MacOS:

      source venv/bin/activate
  4. Install project dependencies:

    pip install -r requirements.txt

Running the Project Locally

  1. Apply database migrations:

    python manage.py migrate
  2. Create a superuser (for Django admin access):

    python manage.py createsuperuser
  3. Start the development server:

    python manage.py runserver

    The project will be accessible at http://localhost:8000.

  4. Access the Django admin interface at http://localhost:8000/admin and log in with the superuser credentials created earlier.

Configuration

Rename the example.env file to .env:

mv example.env .env

Open the .env file and fill in the FDC_TOKEN variable with your FoodData Central (FDC) API token.

Usage

MyFitness allows users to:

  • Track meal nutrition
  • Set goals for calorie, protein, carbs, and fats intake
  • Monitor their macros

Note: MyFitness uses the FoodData Central (FDC) database for nutritional information.

myfitness's People

Contributors

varlamzhordania avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.