File: README.md

package info (click to toggle)
python-pybadges 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: python: 866; sh: 13; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Simple Flask Server

This is a simple example of how a
[Flask](https://flask.palletsprojects.com/) server can serve badges.

### Installing

Before running the server, you must install Flask and pybadges. You can install both with:

```sh
pip install -r requirements.txt
```

### Running

To run the server, you must set the FLASK_APP environment variable before running the server using Flask:

```sh
export FLASK_APP=app.py
flask run
```

After this step, you can view your badge on http://127.0.0.1:5000/