-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreenshot_to_code.txt
39 lines (30 loc) · 953 Bytes
/
Screenshot_to_code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
git clone https://github.com/abi/screenshot-to-code
pip install poetry==1.8.4
cd screenshot-to-code/backend
mkdir backend # yes, inside backend
mv *.py backend/
poetry install
poetry shell
cd backend # yes, backend/backend
poetry run uvicorn main:app --reload --port 7001
#Open another terminal and install yarn
#In windows:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install 18
nvm alias default 18
yarn global add vite
yarn add vite --dev
#In Mac
brew install yarn
#and then run
cd screenshot-to-code/frontend
yarn
yarn dev
Sources:
https://github.com/abi/screenshot-to-code
https://github.com/abi/screenshot-to-code/issues/3#issuecomment-1814777959
https://github.com/yarnpkg/yarn/issues/2821