AlexsLemonade / python-flask-demo

Experimenting with using python flask to serve an API for our next project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Flask Demo

This is a demo of the python Flask framework implementing an API for a portion of the data model for the Resources Portal project.

Installation

Create and activate a virtualenv with:

virtualenv -p python3 venv
source venv/bin/activate

Install the python dependencies with:

pip3 install -r requirements.txt

Run and configure the database (requires Docker):

./scripts/run_postgres.sh
./scripts/install_db_docker.sh

Run the API Server

./scripts/serve.sh

Run the Tests

./scripts/run_tests.sh

About

Experimenting with using python flask to serve an API for our next project.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 74.6%Language:Shell 22.5%Language:Mako 2.8%