This project is a mono-repo template for boostraping a react frontend app and a python fastapi backend for building a full stack LLM app.
- CLI Terminal
- Setup
Python 3.8+ & Pip 3
: I recommend using Pyenv to install python and pip:- Windows Installation Guide: https://github.com/pyenv-win/pyenv-win
- Mac Installation Guide: https://medium.com/geekculture/setting-up-python-environment-in-macos-using-pyenv-and-pipenv-116293da8e72
- Linux Installation Guide: https://gist.github.com/trongnghia203/9cc8157acb1a9faad2de95c3175aa875
- NodeJS 16+: https://nodejs.org/en/download
- OpenAI Account and API Key: https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key OR Cloudflare AI API key: https://developers.cloudflare.com/workers-ai/get-started/rest-api/
- Clone this repo and follow the ReadME instruction for setup: https://github.com/tosinamuda/datafest-llm-workshop
- Working Internet to connect to internet to be able to access OpenAI API
- React Frontend Dependencies are managed through yarn (not NPM) as we rely on yarn workspace for managing the entire monorepo
- Python Backend Dependencies is managed through pipenv
- Entire Monorepo is managed through yarn workspace
- clone this repo by running
git clone https://github.com/tosinamuda/datafest-llm-workshop.git
- Change your directory to datafest-llm-workshop by running:
cd datafest-llm-workshop
- Run
yarn
to install all the dependencies - Copy the
.env.sample
to.env
and replace theOPENAI_API_KEY
orCF_API_KEY
(Cloudflare API Key, include your CF Account ID if using cloudflare ) in .env with your own API Key - Run ``yarn dev` to start a development environment
- If everything runs well, visit localhost:8000/docs for the apis and localhost:5173 for the frontend
- Run ``yarn start` to start a production-ready environment