Update README.md
This commit is contained in:
parent
903385e501
commit
07eba3ba4a
@ -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.
|
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
|
```bash
|
||||||
cd backend
|
cd backend
|
||||||
echo "OPENAI_API_KEY=sk-your-key" > .env
|
echo "OPENAI_API_KEY=sk-your-key" > .env
|
||||||
poetry install
|
poetry install
|
||||||
|
poetry shell
|
||||||
poetry run uvicorn main:app --reload --port 7000
|
poetry run uvicorn main:app --reload --port 7000
|
||||||
cd ..
|
```
|
||||||
|
|
||||||
|
Run the frontend:
|
||||||
|
|
||||||
|
```bash
|
||||||
cd frontend
|
cd frontend
|
||||||
yarn
|
yarn
|
||||||
yarn dev
|
yarn dev
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user