/DjangoRestToDo

Test task for performing a "to-do" board on the Django Rest Framework with a mention in the mail

Primary LanguagePython

Test task ToDo on Django Rest Framework

Installation

Clone a repository
git clone https://github.com/vadushkin/DjangoRestToDo.git
Change a folder
cd DjangoRestToDo
Venv
python -m venv venv
.\venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
Poetry
poetry install
poetry shell

Create file .env

Fill in the data in the file .env

Example:

SECRET_KEY=
DEBUG=

MYSQL_ENGINE=
MYSQL_NAME=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_HOST=

EMAIL_BACKEND=
EMAIL_HOST=
EMAIL_PORT=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=
EMAIL_USE_SSL=
Migrate
python manage.py migrate
Admin Panel
python manage.py createsuperuser
Run
python manage.py runserver

Celery

Worker
celery -A config worker --pool=solo -l info
Beat
celery -A config beat -l info

Redis

docker run -d -p 127.0.0.1:16379:6379 redis 

Api

  • admin/

To-do:

  • to-do/

  • to-do/boards-list/

  • to-do/board-create/

  • to-do/board-upd-del/int:pk/

  • to-do/todo-create/

  • to-do/todo-list/int:pk/

  • to-do/todo-update/int:pk/

  • to-do/todo-delete/int:pk/

  • to-do/todo-list-undone/int:pk/

  • to-do/swagger/

  • to-do/redoc/

Mention:

  • mention/
  • mention/reminder-list/
  • mention/reminder-create/
  • mention/reminder-delete/int:pk/