Purpose | Command |
---|---|
Create Directory | mkdir [Project_Name] |
Go to Directory | cd [Project_Name] |
Create Virtual Env | python3 -m venv venv |
Active Virtual Env | . venv/bin/activate |
Install Flask | pip install Flask |
Follow: A Minimal Application
- Download from here
Wget [file url]
- Unzip File
Unzip [filename]
sudo apt update
sudo apt install npm
sudo npm install -g localtunnel
- Run Flask
flask run
or
python3 app.py
- Run ngrok
./ngrok http [Port]
# ./ngrok http 8080
# lt --port 8080
lt --local-host 127.0.0.1 --port 5000 --subdomain hello
# npm install -g localtunnel
# . venv/bin/activate
# https://www.softwaretestinghelp.com/ngrok-alternatives/
# https://github.com/pallets/flask/tree/main/examples/tutorial/flaskr