atlas-wheatear / PythonServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Server

This is a project for me to learn best practices regarding flask applications running in docker containers.

Installing Development Dependencies

For pip development dependencies:

pip install -r requirements/development.txt

The chrome and firefox browsers are required, alongisde their respective webdrivers.

Configuring

Copy the contents of the file postgres.env.dist from the database directory into a file named postgres.env within the same directory, e.g. on linux:

cp database/postgres.env.dist database/postgres.env

Uncomment the POSTGRES_PASSWORD entry and edit it to contain a secure password, without any spaces and without enclosing in quotation marks.

Testing

Run the following command from the root directory:

pytest

Building and Running

To build:

docker-compose build

To run:

docker-compose up

About

License:GNU Affero General Public License v3.0


Languages

Language:Python 85.0%Language:HTML 10.3%Language:Dockerfile 4.7%