Giter Site home page Giter Site logo

fastapi-pytest-project's Introduction

Book Selling Platform Announcement / Платформа объявлений о продаже книг

Project Description / Описание проекта

ENG: The project is created for educational purposes. It is a platform for book selling announcements.

RUS: Проект создан в учебных целях. Представляет собой платформу объявлений о продаже книг.

Application Launch / Запуск приложения

ENG: Commands are executed in the console / RUS: Команды вызываются в консоли:

Copy .env.example and change the name to .env / Скопируйте .env.example и измените имя на .env

Deploying Postgres DB in a docker container / Развертка БД Postgres в docker-контейнере

make up_compose

Installing dependencies for the FastAPI server / Установка зависимостей для FastAPI сервера

make install_reqs

Starting the FastAPI server / Запуск FastAPI сервера

make start_app

Stopping the server / Остановка сервера

Win: ctrl + c, MacOS: control + c

Useful Information / Полезная информация

ENG: A Makefile with useful commands has been added to the repository. The commands are called in the console in this way:

RUS: В репозиторий добавлен Makefile с полезными командами. Команды вызываются в консоли вот таким образом:

make linters

make install_reqs

Project Structure / Структура проекта

ENG: For convenience and adherence to the principles of clean architecture, the project is divided into the following packages:

RUS: Для удобства и соблюдения принципов чистой архитектуры проект разделен на следующие пакеты:

  • configurations — ENG: layer for storing configurations, constants, parameters, and project settings. / RUS: слой для хранения конфигураций, констант, параметров и настроек проекта.
  • models — ENG: layer for storing models (ORM or Data Classes). / RUS: слой для хранения моделей (ORM или Data Classes).
  • routers — ENG: layer for setting URLs for different endpoints. / RUS: слой для настроек урлов для различных эндпоинтов.
  • schemas — ENG: layer containing pydantic schemes, responsible for serialization and validation. / RUS: слой, содержащий схемы pydantic, отвечает за сериализацию и валидацию.
  • service — ENG: layer containing commands for database access. / RUS: слой, содержащий команды для обращения к базе данных.
  • tests — ENG: layer containing tests of the handlers. / RUS: слой, содержащий тесты ручек.

Testing through Pytest / Тестирование через Pytest

16 tests: 16 passed, 37 warnings

Testing Results through Postman / Результаты тестирования через Postman

ENG: All commands were executed sequentially.

RUS: Все команды выполнены последовательно.

img.png img_1.png img_2.png img_3.png img_4.png img_5.png img_6.png

fastapi-pytest-project's People

Contributors

romiconez avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.