Skip to content

Diet Recommendation System using KNN and built with Python for backend, ReactJS for frontend, and Docker for fast deployment.

Notifications You must be signed in to change notification settings

Aibi-Green/Diet-Recommendation-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diet-Recommendation-System

A simple diet recommender system that uses Docker to manage the application's backend and frontend.

Calorie Calculator based on this.

Table of Content

Requirements:

Tools and Technologies

  • Docker
  • Python
  • FastAPI
  • Uvicorn
  • ReactJS

Run Docker

To run the application make sure, you already have Docker Desktop and Docker Compose.

Clone Repository

After installing, clone this repository.

git clone https://github.com/Aibi-Green/Diet-Recommendation-System.git

Docker Compose

Run docker-compose in terminal of your project root:

docker-compose up -d --build

Web Application

After building the docker containers, open Web App with this link: http://localhost:5173

Building React Vite in Docker

Add this into vite config

export default defineConfig({
  plugins: [react()],
  server: {
    host: true, // this makes it work in docker container
    strictPort: true,
    port: 5173
  }
})

Backend Testing

Download and Install an API platform such as Insomnia or Postman.

Then, create an HTTP request (GET or POST).

example_backend_testing

App Preview

full-app-screenshot

Resources

Dataset - Kaggle

About

Diet Recommendation System using KNN and built with Python for backend, ReactJS for frontend, and Docker for fast deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published