GithubHelp home page GithubHelp logo

ralinsg / hw05_final Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 126 KB

Социальная сеть для публикации личных записей и подпиской на авторов

Python 79.76% HTML 20.24%
django html pillow pytest python sql unittest

hw05_final's Introduction

Проект hw05_final

Проект hw05_final является социальной сетью для публикации личных записей с возможностью публикацией и комментированием постов, а также оформлением подписки на авторов.

Технологический стек:

  • Python 3
  • HTML
  • Django
  • Django ORM
  • SQL
  • Git
  • Unittest
  • Pytest
  • Pillow

Запуск проекта в dev-режиме:

Инструкция для операционной системы windows и утилиты git bash.

Клонировать репозиторий и перейти в него в командной строке:

 git clone [email protected]:ralinsg/hw05_final.git
 cd hw05_final

Cоздать и активировать виртуальное окружение:

 py -3.7 -m venv venv
 source venv/Scripts/activate
 python3 -m pip install --upgrade pip

Установить зависимости из файла requirements.txt:

 pip install -r requirements.txt

Выполнить миграции:

 python manage.py makemigrations
 python manage.py migrate

Создаем суперпользователя:

 python manage.py createsuperuser

Собираем статику:

 python manage.py collectstatic

Шаблон наполнения .env (не включен в текущий репозиторий) расположенный по пути infra/.env

SECRET_KEY='secret_key'

Запускаем проект:

 python manage.py runserver

После чего проект будет доступен по адресу http://localhost/

Примеры запросов:

Отображение постов и публикаций (GET, POST)

http://127.0.0.1:8000/posts/

Получение, изменение, удаление поста с соответствующим id (GET, PUT, PATCH, DELETE)

http://127.0.0.1:8000/posts/{id}/

Получение информации о подписках текущего пользователя, создание новой подписки на пользователя (GET, POST)

http://127.0.0.1:8000/posts/follow/

Авторы

hw05_final's People

Contributors

ralinsg avatar

Watchers

 avatar

hw05_final's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.