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.0.tar.gz (16.8 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.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psycpg_binary-1.0.0.tar.gz
  • Upload date:
  • Size: 16.8 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.0.tar.gz
Algorithm Hash digest
SHA256 09d8dd6325622c82ddd3f339b86de6ecb880db1e280405d57d8515f36156fc5a
MD5 de21f5c1bbba978105ad846d37947955
BLAKE2b-256 73640a9c3d5ea27483083ff0a9a12d4a42d37aa2ff46b968aae4c3ec9b562d17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycpg_binary-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c033b94e0908843deaa800bed67195dbbba60c3e283ba5b6f68209192080cf
MD5 1d6394f1faf6b9782a00b4796b9e9edd
BLAKE2b-256 117875961d7a3805bcfe55a2b40858cfa47fcb8fc895be4120747fc497756979

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