Files
pybadges/server-example
2020-06-29 16:29:34 -07:00
..
2020-06-29 16:29:34 -07:00
2020-04-25 16:26:16 -07:00
2020-06-29 14:00:54 -07:00
2020-06-29 14:00:54 -07:00
2020-06-29 16:29:34 -07:00

Simple Flask Server

This is a simple example of how badges can be served from a web server.

Installing

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

pip install -r requirements.txt

Running

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

export FLASK_APP=app.py
flask run

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