https://github.com/kdhttps/flask-tutorials
https://github.com/kdhttps/flask-tutorials
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kdhttps/flask-tutorials
- Owner: kdhttps
- Created: 2020-09-29T14:16:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-12T14:02:33.000Z (about 5 years ago)
- Last Synced: 2025-06-29T14:39:47.331Z (6 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Flask Tutorials
## Configuration
1. `python3 -m venv venv` to setup virtual environment
1. `. venv/bin/activate` activate the environment
1. `pip3 install -r requirements.txt` install flask
1. `export FLASK_ENV=development` set it for auto reload and debugger
## Run
1. `export FLASK_APP=flasker` set `FLASK_APP` env
1. `flask run` run application
## others
1. How to create `requirements.txt` in fresh project
```python
. venv/bin/activate
pip3 freeze > requirements.txt
```
1. Install Deps in Fresh project
```
pip3 install -r requirements.txt
```