Update README.md
This commit is contained in:
parent
6f805822a6
commit
061024e8f0
54
README.md
54
README.md
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
**Draw Fast** is a demo that shows how you can use the [**tldraw library**](https://tldraw.dev) with realtime image generation. The demo has now finished and we’ve taken it down. But you can still run it on your own machine and try it out.
|
||||
|
||||
Here’s how:
|
||||
Here are two ways of doing that.
|
||||
|
||||
# Run it locally
|
||||
|
||||
## 1. Clone the repo
|
||||
|
||||
|
|
@ -61,3 +63,53 @@ We’re [@tldraw on twitter](https://twitter.com/tldraw).
|
|||
## Troubleshooting
|
||||
|
||||
If the generated images don’t appear, try running `npm install` and `npm run dev` again, or try waiting a while for your key to activate.
|
||||
|
||||
# Run it in CodeSandbox
|
||||
|
||||
## 1. Import the repo
|
||||
|
||||
Sign in on [CodeSandbox](https://codesandbox.io). Click on **Import repository**.
|
||||
|
||||

|
||||
|
||||
|
||||
Import the repo by pasting in `https://github.com/tldraw/draw-fast` and clicking **Import**.
|
||||

|
||||
|
||||
|
||||
## 2. Setup the environment
|
||||
|
||||
Click **Next** until you get to the **Set environment variables** screen.
|
||||

|
||||
|
||||
|
||||
On the **Set environment variables** screen, click **Add variable**.
|
||||

|
||||
|
||||
|
||||
Name your key `FAL_KEY`.
|
||||
|
||||
You can get a key from [fal.ai](https://www.fal.ai/dashboard/keys)
|
||||
Instructions on how to do that are [here](https://www.notion.so/Draw-Fast-help-038edf9a982847e19df078854c54c8dd?pvs=21).
|
||||

|
||||
|
||||
|
||||
Click **Save**, then click **Next** until you get to the end of setup.
|
||||
|
||||

|
||||
|
||||
Finally, click **Apply and restart**, and wait about 5 minutes.
|
||||

|
||||
|
||||
|
||||
## 3. Draw fast
|
||||
|
||||
Draw something in the rectangle!
|
||||
Double-clicking the prompt to change it.
|
||||
Click the small arrow to enter *lens mode*.
|
||||
|
||||
## 4. Share!
|
||||
|
||||
Record your screen and show us what you draw fast.
|
||||
|
||||
We’re [@tldraw on twitter](https://twitter.com/tldraw).
|
||||
|
|
|
|||
Loading…
Reference in New Issue