/IMDB

Primary LanguagePython

IMDB

About the Project

This is my first Web Project Based on Django and Vue Realized Redirect from IP Adress to Domain https://ithillel-leonid.ogir-ok.com/

Used Technologies

                    Python Django PostgreSQL Docker Django REST framework

  • Bootstrap
  • Vue.js
  • Pinia
  • JavaScript
  • SSL Certificate

Quick Start

  1. clone it
git clone https://github.com/edonssfall/IMDB.git
  1. copy example.dev.py to dev.py and fill it
DATABASES = {
    'default': {
        'NAME': 'DB Name',
        'USER': 'DB User',
        'PASSWORD': 'DB Password'
    }
}

CELERY_BROKER_URL = 'redis://redis:port/celery_tasks'

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '<your app id goes here>'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '<your app secret goes here>'

SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [
    'https://www.googleapis.com/auth/userinfo.email',
    'https://www.googleapis.com/auth/userinfo.profile',
]

STATIC_ROOT = '/folder/for/static'
  1. copy .env.example to .env and fill it .env
SECRET_KEY='secret_key_for_django'

db.env

POSTGRES_PASSWORD=DB_PASSWORD
POSTGRES_DB=DB_NAME
  1. check client/src/constance.js on host-name
export let DjangoAPIHost = 'http://localhost:8000/';
//export let DjangoAPIHost = 'http://fill.your.address/';
  1. run
docker-compose up
  1. makemigrations and create super user
docker exec -it docker_web_name bash
./manage.py migrate
./manage.py createsuperuser