Skip to content

Hivekind/meal_planner

Repository files navigation

README

In this project, we are using ruby on rails for backend, nextjs for frontend and python script for working with AI related stuff like embeddings, RAG chain etc.

Meal Planner UI

Prerequisits:

  • Ruby 3.3.0
  • Python3
  • OpenAI API key
  • Weaviate account
  • Huggingface Account

Install required gems and dependencies

bundle install

Create database and Run migrations

rails db:create
rails db:migrate
rails db:seed

Start rails server in 3001 port

rails s -p 3001

Setup Python environment

Install python3:

brew install python

Check if python is installed or not

python3 --version

Create a Python virtual environment:

python3 -m venv venv

Activate the virtual environment:

source venv/bin/activate # On Linux/macOS
.\venv\Scripts\activate # On Windows

Check if pip is installed or not:

pip --version

If pip is not installed, you can install it using the following command:

python3 -m ensurepip --upgrade

Install all the packages mentioned in requirements.txt:

pip install -r requirements.txt

Setup frontend

Go to the frontend folder to run frontend:

cd nextjs-frontend

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

AI Meal Planner using langchain and weaviate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published