Skip to content

ForeverProglamer/maklai-internship-test-task

Repository files navigation

maklai-internship-test-task

How to run

You can run this project either locally or using Docker.

Regardless of the option you choose, you need to clone this repo and change your current working directory to cloned project's root directory.

Running locally

  1. Install project's dependencies with:

    pip install -r requirements.txt

    Additionally, you can install test dependencies to be able to run tests:

    pip install -r requirements-test.txt
  2. Execute one of the following commands:

    2.1 Run application itself:

    uvicorn main:app

    After that application can be accessed at http://localhost:8000.

    2.2 Or, optionally, run tests with:

    pytest -v

Running using Docker

Use docker compose to run application:

docker compose up -d

After that application can be accessed at http://localhost:8000.

Optionally, to run tests use the following commands:

docker build -f Dockerfile.test -t <image-name>:<image-tag> .
docker run --rm <image-name>:<image-tag>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published