You can access the website at daily-diet-aut.herokuapp.com and the API is deployed on Heroku at dailydiet-api.herokuapp.com.
We're a small team focused on providing tools and support for people who want to take control of their nutrition. Given the saturation of information in the diet industry, we focus on more pragmatic elements of healthy eating such as planning and cooking.
-
BMI and Daily Needed Calorie Calculator:
Body Mass Index (BMI) is a value derived from the mass and height of a person. It can be an important thing to consider in someone's diet since it describes your current body situation (if you need to lose or gain weight).
A normal person's daily needed calorie can be calculated using personal data and it's the most important thing in a healthy diet. -
Receiving Diet Plans:
We have implemented a dynamic-programming algorithm for constructing a relevant diet based on the user's needed calorie. The algorithm can be improved using more complex concepts (genetic, etc.).
The plan will mostly contain a breakfast, main dish, and a simpler meal. The number of meals can be selected by the user. -
Accounts Managing:
We used JWT to create and manage users' accounts. Users must sign up and confirm their email in order to use our main features.
Users can also use a dashboard to review their daily diets for the past 5 days, or manage other things about their accounts. -
(Advanced) Searching Recipes:
We have implemented Elasticsearch on our database. Our Elasticsearch allows users to not only search by the name of the foods but also provide the feature of an advanced search. The search can be expanded on food nutrition, cooking time, and ingredients in various categories. You can search for recipes you can make with the ingredients you already have at home. -
Blog:
Our blog is where authenticated users and nutrition experts can publish their posts.
Posts are displayed in the blog timeline and can be accessed by category or author. -
Admin Panel:
An admin is needed to maintain and modify our content and users.
Admins can edit (create/delete/edit) blog posts, recipes, and users.
-
Back-end:
- FLASK
- PostgreSQL (on AWS cluster)
- JSON Web Tokens
- Elasticsearch
-
Front-end:
- Vue.JS
- NUXT
- BootstrapVue
-
Deployment:
- We have deployed our project on every stage to maintain a stable product.
- DailyDiet is deployed on Heroku, which is a cloud platform as a service supporting several programming languages for easy deployment of applications.
-
iOS Application:
- Swift
- Auto Layout
- Fastlane
- GitHub Action
-
Install packages with
pip install -r requirements.txt
-
Set environment variable
DAILYDIET_ENV
toDevelopment
/Testing
/Production
(default value isDevelopment
if you set nothing) -
Copy
.env.example
to.env
and fill in the keys -
Run with
python app.py