Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 914 Bytes

README.md

File metadata and controls

65 lines (43 loc) · 914 Bytes

Tic Tac Toe - Backends

Prerequisites

  • Set up your .venv
  • Install the library

Setup (development)

Activate your .venv if you haven't already:

source ../.venv/bin/activate

Install dependencies:

python -m pip install pyproject.toml
python -m pip install -r requirements.txt
python -m pip install -r requirements.development.txt

Start

python -m api.app

The API development server runs on http://127.0.0.1:5000/ by default.

View the production docs at https://tic-tac-toe-backends.fly.dev/docs View the local docs at http://127.0.0.1:5000/docs

Test

python -m coverage run -m unittest discover tests

Watch tests:

ptw

Report coverage:

python -m coverage report

Deploy

Install production dependencies:

python -m pip install -r requirements.production.txt

Run:

gunicorn wsgi:app