Google Calendar LLM Assistant built with Next.js, FastAPI, and MongoDB. Assistant logic built using Langchain and the OpenAI API.
Blog Post: https://gordles.io/posts/calvin
- OpenAI API Account - https://openai.com/blog/openai-api
- Google Cloud Console Account - https://console.cloud.google.com/welcome/new
- Docker - https://docs.docker.com/engine/install
To run this project using docker, ensure all .env
variables are set that are listed in the .env.sample
file. You can kick off the entire project by simply running
make down build up
You can also run the individual components using make
:
- Next.js -
make run-frontend
- MongoDB -
make run-database
- FastAPI -
make run-server
Navigate to the frontend directory and install all necessary node packages then run the project.
cd frontend
npm install
npm run dev
You can run Mongo in several ways, just ensure that the MONGODB_URI
env variable is updated.
- Docker mongo image https://hub.docker.com/_/mongo
- MongoDB hosted https://www.mongodb.com
Navigate to the backend directory and install the necessary python packages, then run the server.
cd backend
pip install -r requirements.txt
uvicorn main:app --reload
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.