GithubHelp home page GithubHelp logo

warkinstar / bookmarks Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 61 KB

A social network for publishing your pictures. There is an opportunity to like, subscribe, log in via Google, Twitter, Facebook

License: MIT License

Python 60.25% CSS 8.88% HTML 26.99% JavaScript 3.88%

bookmarks's Introduction

bookmarks

Социальная сеть для публикаций своих картинок. Есть возможность лайкать, подписываться, авторизация через Google, Twitter, Facebook

You can install all the requirements at once with the command pip install -r requirements.txt.

A social website, including user registration, password management, profile editing, and authentication. Users can share images and interact with each other. Users can to bookmark any image on the internet and share it with other users. You can to see activity on the platform from the users they follow and like/unlike the images shared by them.

Социальный веб-сайт,включающий регистрацию пользователей, управление паролями, редактирование профиля и аутентификацию. Пользователи могут обмениваться изображениями и взаимодействовать друг с другом. Могут добавлять в закладки любое изображение в Интернете и делиться ими с другими пользователями. Вы можете видеть активность на платформе от пользователей, на которых они подписаны, и лайки / дизлайки на странице картинки, которыми они делятся.

Установка

  • Создаем виртуальное окружение
python -m venv .venv
.venv/scripts/activate
  • Устанавливаем зависимости проекта pip install -r requirements.txt

  • В файле .env укажите API ключи для социальной аутентификации через Google, Twitter, Facebook:

# Facebook auth
SOCIAL_AUTH_FACEBOOK_KEY = "your_key"
SOCIAL_AUTH_FACEBOOK_SECRET = "your_secret"

# Google auth
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = ""
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ""

# Twitter auth
SOCIAL_AUTH_TWITTER_KEY = ""
SOCIAL_AUTH_TWITTER_SECRET = ""

# Twitter
CLIENT_ID = ""
CLIENT_SECRET = ""
BEARER_TOKEN = ""
  • Установите и запустите Redis (требуется Docker)
docker pull redis
docer run --name redis -p 6379:6379 redis
  • Проведите миграцию базы данных:
python manage.py migrate
  • Создайте superuser:
python manage.py creatsuperuser
python manage.py runserver
  • Запуск проекта с имитацией https протокола для тестирования социальной аутентификации: Сначало отредактируйте главный hosts файл и добавить в его конец:
# django bookmarks project
127.0.0.1 mysite.com

Запуск сервера команой:

python manage.py runserver_plus --cert-file cert.crt

После этого вы может войти на сайт по https://mysite.com:8000/account/

Этот проект лицензирован в соответствии с лицензией MIT. Подробности можно найти в файле LICENSE.

bookmarks's People

Contributors

warkinstar avatar

Watchers

Kostas Georgiou avatar  avatar

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.