Skip to content

Latest commit

 

History

History

hangman-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

hangman-server

Hangman REST API written in python using flask

Getting started

Make sure you're using python 3.11.

Setup virtual env

virtualenv --python=python3 venv
source venv/bin/activate

Install requirements

pip install -r requirements.txt

Run the tests

python -m pytest tests -v

Start server

python server.py

Hit the API

POST http://localhost:5000/api/hangman
GET http://localhost:5000/api/hangman/{game_id}