Skip to content

arturboyun/receipt-api

Repository files navigation

Receipt API

Test task for checkbox.ua

This is a simple API that allows you to create and share your receipts with others.

System Requirements

  • Make
  • Python 3.12^
  • Poetry
  • Docker
  • Docker-compose

Installation

To install the application, follow these steps:

  1. Clone the repository
  2. Install the dependencies with poetry poetry install
  3. Create a copy of .env.dist as .env file in the root directory and fill it.
  4. Start database in docker with make docker-db
  5. Run migrations with make migrate
  6. Run the application with make dev

Testing

Tests are written with pytest and can be run with the following steps:

  1. Start database in docker with make docker-db
  2. Run tests with make test

Generate Secret Key

You can generate a secret key for .env with python -c "import secrets; print(secrets.token_urlsafe(32))"

API Documentation

You can find the API documentation by visiting /docs or /redoc endpoints.

About

Test task for checkbox.ua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published