Skip to main content

REST API прачечной в общежитии

Project description

Laundry API — прачечная в общежитии

REST API на Django + DRF для управления прачечной, заявками и стиральными машинами.

Быстрый старт (локально)

cd back
pip install -e ".[dev]"
copy .env.example .env
python manage.py migrate
python manage.py seed_data
python manage.py runserver

Или через requirements:

pip install -r requirements/dev.txt

Тестовые пользователи после seed_data:

  • admin / admin123
  • operator / operator123

Docker

cd back
docker compose up --build

Тесты

pytest

Контракты API

Полное описание эндпоинтов — в API.md.

Интерактивная документация:

Установка как Python-пакет

pip install -e ".[dev]"    # разработка
pip install ".[prod]"       # продакшен / Docker

Пакет: psycpg-binary (модули: app, back, settings).

Структура настроек

  • settings/base.py — общие настройки
  • settings/dev.py — разработка (sqlite)
  • settings/prod.py — продакшен (PostgreSQL)

Аутентификация

Authorization: Bearer <token>

Токен получается через POST /api/users/login/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psycpg_binary-1.0.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psycpg_binary-1.0.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file psycpg_binary-1.0.1.tar.gz.

File metadata

  • Download URL: psycpg_binary-1.0.1.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for psycpg_binary-1.0.1.tar.gz
Algorithm Hash digest
SHA256 723259d25a69f648adb5b75ae563318107ee9a2093515a8828183bcfee349fef
MD5 f0f7b3d245385b6096d3c317ce104da9
BLAKE2b-256 1b6e29d100c5aa7644f9f01dc45f71e2ac252c21d1c24b364ebbf2a2584edee2

See more details on using hashes here.

File details

Details for the file psycpg_binary-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: psycpg_binary-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for psycpg_binary-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7499485db0ced694920625cb5844dac5d2873af8dc2670ecd2f30c98a9124f9b
MD5 494703c7a70b99643f799a5e4ec53642
BLAKE2b-256 387834760e5b677bab30cb03a030d1667c775691b2ded3615a8090ab7d5f84a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page