Closed milochen0418 closed 1 year ago
Should fix to
This colab file is contributed by https://github.com/milochen0418
Let everyone can open the browser to develop the reflex web app
in every computer without any installation.
Welcome to click fork and star this GPLv3 open-source project
https://github.com/milochen0418/pynecone-colab-ide
,
NGROK_KEY: You can sign up at https://ngrok.com/ to get auto token
OPENAI_KEY: You can sign up and log in to https://platform.openai.com, then open https://platform.openai.com/account/api-keys
, and
There are 3 steps you should do if you want your tunnel works well when you are developing a web app.
Step 1. Please open backend_url in your browser and click the blue button `Visit Site`
Step 2. Please open frontend_url in your browser and click the blue button `Visit Site`
Step 3. Run the following cell, named Terminal, and try to run the snake-game web app
Step 3.1. # cd app/examples/snakegame/
Step 3.2. # reflex init && reflex run
Step 3.3. Use your browser to open frontend_url and play the snake-game. If it works, then you can start to develop.
Troubleshooting:
If you cannot see the switch turn on when clicking the `Run` button, that means Ngrok detects the IP of your colab runtime and
add a more vital constraint to limit your tunnels. That's why it doesn't work. The way to solve this issue is to
Disconnect and delete runtime. And Reconnect. And it would be best if you reinstalled the environment again.