From 07eba3ba4a31e5575b74af7976c65bd848ae1cfa Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 15 Nov 2023 11:48:20 -0500 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec68c73..226bdf7 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,19 @@ https://github.com/abi/screenshot-to-code/assets/23818/6cebadae-2fe3-4986-ac6a-8 The app has a React/Vite frontend and a FastAPI backend. You will need an OpenAI API key with access to the GPT-4 Vision API. -In the root directory, +Run the backend (make sure you have poetry installed on your system): ```bash cd backend echo "OPENAI_API_KEY=sk-your-key" > .env poetry install +poetry shell poetry run uvicorn main:app --reload --port 7000 -cd .. +``` + +Run the frontend: + +```bash cd frontend yarn yarn dev