Coder Social home page Coder Social logo

anonysharma / django-healthplusplus Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 14.83 MB

Health++ is an application that helps user to manage their diet and calories consumption.

Home Page: https://health-plus-plus.herokuapp.com/

License: MIT License

Python 22.23% Shell 0.82% CSS 2.87% JavaScript 59.10% HTML 14.99%
diet-managment diet-calculator calorie-counter django python

django-healthplusplus's Introduction

Health++

Health++ is an application that helps user to manage their diet and calories consumption. It provides a common platform for dieticians and their patients, so that they can manage a proper diet. It also generates personalized infographics so that user properly understands his nutrition level.

Run deployed website

Deployed at Heroku: img (Click this image)

Run locally

Clone the Repository using:

git clone --single-branch --branch local https://github.com/AnonySharma/Django-HealthPlusPlus.git
cd Django-HealthPlusPlus

Basic Setup:
(Run this to use shell shortcuts)

chmod +x s.sh

Create virtual environment:

pip install virtualenv
virtualenv venv

source venv/bin/activate (for linux)
./venv/scripts/activate (for windows)

Install required packages:

pip install -r requirements.txt

Setup the database:
In the following code, replace <USER> with any username of your choice.
In the following code, replace <PASS> with any password of your choice.

mysql -u root -p
create database HPP_database;
create user '<USER>'@'localhost' identified by '<PASS>';
grant usage on *.* to '<USER>'@'localhost';
grant all priveleges on HPP_database.* to '<USER>'@'localhost';

Setup settings.py
(Replace the following code in settings.py)
In the following code, replace <USER> with the username you created above.
In the following code, replace <PASS> with the password you created above.

DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME' : 'HPP_database',
    'USER' : '<USER>',
    'PASSWORD' : '<PASS>',
    'HOST' : 'localhost',
    }
}

Then make migrations:

./s.sh make
or
python3 manage.py makemigrations

Then migrate the migrations:

./s.sh mig
or
python3 manage.py migrate

Then create a super-user:

./s.sh sup
or
python3 manage.py createsuperuser

Then run the server:

./s.sh run
or
python3 manage.py runserver

Contribute

Please contribute if you find our project interesting.

django-healthplusplus's People

Contributors

anonysharma avatar maheshwari-ji avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.