Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Merge branch 'main' into pr/7

Abi Raja28a05153e981
diff --cc README.md
index eb9725bc,e70a3404..343ad6d4
--- a/README.md
+++ b/README.md
@@@ -8,13 -10,14 +10,14 @@@ See the [Examples](#examples) section b
πŸ†• [Try it here](https://picoapps.xyz/free-tools/screenshot-to-code) (bring your own OpenAI key - **your key must have access to GPT-4 Vision. See [FAQ](#faqs) section below for details**). Or see [Getting Started](#getting-started) below for local install instructions.
- ## Updates
+ ## 🌟 Recent Updates
+ - Nov 19 - Support for dark/light code editor theme - thanks https://github.com/kachbit
- Nov 16 - Added a setting to disable DALL-E image generation if you don't need that
- Nov 16 - View code directly within the app
- - Nov 15 - πŸ”₯ You can now instruct the AI to update the code as you wish. Useful if the AI messed up some styles or missed a section.
-- Nov 15 - πŸ”₯ You can now instruct the AI to update the code as you wish. It is helpful if the AI messed up some styles or missed a section.
++- Nov 15 - πŸ”₯ You can now instruct the AI to update the code as you wish. It is helpful if the AI messed up some styles or missed a section.
- ## Getting Started
+ ## πŸ›  Getting Started
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.
@@@ -40,20 -43,7 +43,20 @@@ Open http://localhost:5173 to use the a
If you prefer to run the backend on a different port, update VITE_WS_BACKEND_URL in `frontend/.env.local`
+## Docker
+
+If you have Docker installed on your system, you can get started quickly with:
+
+```bash
+echo "OPENAI_API_KEY=sk-your-key" > .env
+docker-compose up -d --build
+```
+
+Application will be up and running at http://localhost:5173
+
+Note that you can't develop the application with this setup as the file changes won't trigger a rebuild.
+
- ## FAQs
+ ## πŸ™‹β€β™‚οΈ FAQs
- **I'm running into an error when setting up the backend. How can I fix it?** [Try this](https://github.com/abi/screenshot-to-code/issues/3#issuecomment-1814777959). If that still doesn't work, open an issue.
- **How do I get an OpenAI API key that has the GPT4 Vision model available?** Create an OpenAI account. And then, you need to buy at least $1 worth of credit on the [Billing dashboard](https://platform.openai.com/account/billing/overview).