An open API service indexing awesome lists of open source software.

https://github.com/realpython/flask-download

wip
https://github.com/realpython/flask-download

Last synced: 7 months ago
JSON representation

wip

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
```