https://github.com/realpython/flask-download
wip
https://github.com/realpython/flask-download
Last synced: 7 months ago
JSON representation
wip
- Host: GitHub
- URL: https://github.com/realpython/flask-download
- Owner: realpython
- Created: 2015-01-05T04:52:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-11T19:49:26.000Z (almost 11 years ago)
- Last Synced: 2025-05-07T21:03:47.124Z (7 months ago)
- Language: Python
- Size: 152 KB
- Stars: 6
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
WIP
# Flask Download
Sell a digital download.
## QuickStart
### Config
Rename *config_sample.py* as *config.py* and then update.
#### Set Environment Variables
```sh
$ export APP_SETTINGS="project.config.DevelopmentConfig"
```
or
```sh
$ export APP_SETTINGS="project.config.ProductionConfig"
```
#### Create DB
```sh
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
```
#### Run
```sh
$ python manage.py runserver
```
#### Testing
Without coverage:
```sh
$ python manage.py test
```
With coverage:
```sh
$ python manage.py cov
```