https://github.com/ryanj/flask-base
A basic Flask example with support for easy APIs and static files
https://github.com/ryanj/flask-base
Last synced: about 1 year ago
JSON representation
A basic Flask example with support for easy APIs and static files
- Host: GitHub
- URL: https://github.com/ryanj/flask-base
- Owner: ryanj
- Created: 2014-04-27T02:19:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-01-12T01:20:25.000Z (over 1 year ago)
- Last Synced: 2025-04-06T20:15:36.680Z (about 1 year ago)
- Language: HTML
- Homepage:
- Size: 30.3 KB
- Stars: 13
- Watchers: 2
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A basic Flask quickstart
*With support for serving easy APIs and static content*
## OpenShift
Deploy to OpenShift
```bash
oc new-app python~https://github.com/ryanj/flask-base
oc expose service/flask-base
```
## Local Dev
Initialize a python virtual environment:
```bash
python3 -m venv .venv
. .venv/bin/activate
```
Install module dependencies:
```bash
pip install -r requirements.txt
```
Start a local development server on port 8080:
```bash
flask --app flaskapp run --port=8080 --debug
```
## License
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)