Minimal Flask API to explore a nested set model.
Check the challenge in the docs folder.
The project uses sqlite, so the only requirement is:
python3
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install
flask --app nodes run --debugGo to the browser and try a sample API call like:
http://127.0.0.1:5000/api/nodes/5/children?language=italian
docker pull andreafspeziale/nodes-app
docker run -p 8000:8000 --rm andreafspeziale/nodes-appGo to the browser and try a sample API call like:
http://127.0.0.1:8000/api/nodes/5/children?language=italian
$ mypy # type check
$ black . # formatting
$ pylint nodes tests # linting
$ pytest # tests- Author - Andrea Francesco Speziale
nodes MIT licensed.