Skip to content

flexport/flexport-devx-takehome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flexport Productivity Infrastructure Take Home

This repository contains a python backend service. This service provides a simple REST api for playing "Rock, Paper, Scissors" with a computer.

Running service

Create virtualenv (optional)

python -m venv venv

Install dependencies

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

Running tests

PYTHONPATH="${PYTHON_PATH}:./src" python -m pytest -v tests/unit
PYTHONPATH="${PYTHON_PATH}:./src" python -m pytest -v tests/functional

Run it

flask --app src/rock_paper_scissors/app  run

Testing service

curl http://127.0.0.1:5000/health
curl -X POST -H 'Content-Type: application/json' http://127.0.0.1:5000/rps -d '{"move": "Rock"}'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages