Skip to content

casoetan/n1-todo

Repository files navigation

N1 Todo

Code style: black Code coverage: pytest PyPI - Python Version

A simple todo application built with Python using Flask and SQLite.

Dependencies

Setup

This project uses poetry for managing python dependencies.

Steps get started

  • Clone repository

  • Install Python Poetry

brew install poetry

Following commands should be run from inside cloned directory

  • Install dependencies

Please setup a virtualenv before installing packages

poetry install
  • Setup database
env FLASK_APP=todo_api/api FLASK_ENV=development python -m flask db upgrade
  • Start application
env FLASK_APP=todo_api/api FLASK_ENV=development python -m flask run

Testing

The project uses pytest for testing

pytest --cov ./todo_api

Specs

Open API specs in OpenAPI