forked from google/pybadges
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a50a3e9
commit 12e86df
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
## Simple Server | ||
## Simple Flask Server | ||
|
||
This is a simple example of how badges can be served from a web server. | ||
|
||
### Installing | ||
|
||
Before running, it is **recommended** to install the versions of packages that were used when writing this code: | ||
Before running the server, you must install Flask and pybadges. You can install both with: | ||
|
||
```sh | ||
pip install -r requirements.txt | ||
``` | ||
|
||
### Running | ||
|
||
You must set the FLASK_APP environment variable before running the server: | ||
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 | ||
``` | ||
|
||
* Running on https://127.0.0.1:5000/ | ||
After this step, you can view your badge on https://127.0.0.1:5000/ |