Arranging the rental of game consoles – a lucrative business idea...
Today, there are numerous gamers who enjoy playing a variety of computer games, including children. However, not everyone can afford to purchase a modern game console due to its high cost. This is where entrepreneurs who rent out consoles come to the rescue. It's a profitable venture for them.
More information about the project can be found in the dynamic documentation generated using the module: drf-yasg.
The documentation is available at: http://127.0.0.1:8000/redoc/
.
Static documentation will be generated upon completion of the application development backend
- Basic project models
- User-permissions
- Administrator page
- Infrastructure
- Project services and pages
- Project launch
- Code styling
- Test coverage
- Status update
- ✔️ Username
- ✔️ First name
- ✔️ Last name
- ✔️ Phone number
- ✔️ Image
- ✔️ Role (rentor, user)
- ⬜ Rating
- ✔️ Author(rentor)
- ✔️ Name
- ✔️ Image
- ✔️ Description
- ✔️ Status (free, busy)
- ✔️ Categories(slim, pro, xbox и пр.)
- ✔️ Barcode
- ✔️ Rating
- ✔️ Rental price
- ✔️ Name
- ✔️ Image
- ✔️ Description
- ✔️ Tags(single, multi - user, etc.)
- ✔️ Name
- ✔️ HEX-color
- ✔️ Slug
- ✔️ User
- ✔️ Game console
- ✔️ Date start
- ✔️ Date end
- 👁️ Allowed:
- ✔️ Create an account
- ✔️ View consoles
- ✔️ View games
- ⬜ View rental pages
- ⬜ Filter games by tags
- ⬜ Filter consoles by categories
- 🚧 Запрещено:
- 👁️ Allowed:
- ⬜ Has the rights of an unauthorized user
- ✔️ Logging into the system with their own login and password
- ✔️ Logging out of the system (logging out)
- ✔️ Changing password
- ✔️ Creating orders
- ⬜ Tracking the status of orders
- ✔️ Adding / removing to favorites
- ✔️ Leaving reviews
- ✔️ Leaving comments on reviews
- ☑️ Subscribing to lessors
- ⬜ Evaluating lessors
- 🚧 Запрещено:
- ☑️ Подписываться на себя и других пользователей
- 👁️ Allowed:
- ⬜ Обладает правами авторизованного пользователя
- ✔️ Размещать игровые приставки
- ⬜ Управлять заказами (отменять, редактировать дату, отмечать как завершенный)
- ⬜ Оценивать арендателей
- 🚧 Запрещено:
- ☑️ Подписываться на кого-либо
В репозитории есть папки backend, badges, tests:
- В папке
backend
— файлы, необходимые для сборки бэкенд приложения. - В папке
tests
— файлы, необходимые для тестирования бэкенд приложения. - В папке
badges
— бейджи, необхдимые для добавления в файл README
Continuous integration with GitHub Actions
Для работы с Workflow добавить в Secrets GitHub переменные окружения для работы:
CODECOV_TOKEN #Секретный токен сервиса: https://codecov.io
Workflow состоит из следующих этапов:
- Проверка кода на соответствие PEP8
- Тестирование приложения
backend
посредством pytest
- Клонирование репозитория
git clone https://github.com/EvgVol/rent_play.git
Откройте в своем редакторе кода локальный проекта из репозитория GitHub, клонированного ранее
- Развертывание в репозитории виртуального окружения
python3 -m venv venv
- Запуск виртуального окружения
source venv/Scripts/activate
- Установка зависимостей в виртуальном окружении
pip install -r requirements.txt
- Выполнение миграций
python manage.py migrate
- Выполните импорт данных (категории, теги, периоду) в базу данных
python manage.py importcsv
- Запустите проект
python manage.py runserver
Код соответствует PEP 8
- BACKEND - EvgVol
Иконка | Статус |
---|---|
☑️ | Реализовано и проверено |
✅ | Реализовано полностью |
✔️ | Реализовано частично |
⬜ | Не реализовано |
Возникли трудности | |
🆘 | Нужна помощь |