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
- API: http://127.0.0.1:8000/api/
- Админка: http://127.0.0.1:8000/admin/
- Swagger: http://127.0.0.1:8000/api/schema/swagger-ui/
- Redoc: http://127.0.0.1:8000/api/schema/redoc/
Тестовые пользователи после seed_data:
admin/admin123operator/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
723259d25a69f648adb5b75ae563318107ee9a2093515a8828183bcfee349fef
|
|
| MD5 |
f0f7b3d245385b6096d3c317ce104da9
|
|
| BLAKE2b-256 |
1b6e29d100c5aa7644f9f01dc45f71e2ac252c21d1c24b364ebbf2a2584edee2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7499485db0ced694920625cb5844dac5d2873af8dc2670ecd2f30c98a9124f9b
|
|
| MD5 |
494703c7a70b99643f799a5e4ec53642
|
|
| BLAKE2b-256 |
387834760e5b677bab30cb03a030d1667c775691b2ded3615a8090ab7d5f84a5
|