You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Timofey Malinin 51a4191064
Update file README.md
3 years ago
.gitlab/merge_request_templates add flake 8 integration and remove front 3 years ago
fixtures add_new_models+remove_location_id 3 years ago
postamates rebuild 3 years ago
service status_enum 3 years ago
templates/admin add_new_models+remove_location_id 3 years ago
.dockerignore add precommit hook 3 years ago
.env.like add_filters 3 years ago
.flake8 per_file_ignore 3 years ago
.gitignore placement_points 3 years ago
.gitlab-ci.yml final test 3 years ago
.pre-commit-config.yaml change ci 3 years ago
Dockerfile test 3 years ago
README.md Update file README.md 3 years ago
docker-compose.test.yml this is kind of magic 3 years ago
docker-compose.yml this is kind of magic 3 years ago
manage.py init 3 years ago
requirements.txt add_celery 3 years ago

README.md

Рекомендательный сервис для размещения постаматов

Инструкция по развёртыванию проекта:

  • Установите docker

  • Установите docker compose

  • Положите файлы из репозитория в папку:

    • через GIT:
    git clone git@gitlab.com:leaders2022/postamates.git postamates
    git pull
    git checkout sst_main
    git pull
    
    • через zip архив: unzip archieve.zip -d postamates
  • создайте файл postamates/.env на основе файла postamates/.env.like

  • Запустите проект:

    cd postamates
    sudo docker-compose up -d
    

Команды для проекта:

  • Создание суперюзера: sudo docker exec -it ${CONTAINERS_NAME}_django python manage.py createsuperuser
  • Создание фикстур: sudo docker exec -it ${CONTAINERS_NAME}_django python manage.py loaddata fixtures/groups.json

Полезные ссылки

  • Админ панель http://HOST:DJANGO_PORT/admin/
  • Swagger http://HOST:DJANGO_PORT/swagger/