cseshahriar / shosen-tube-backend

Youtube clone backend | Assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shosen-tube-videos

Shosen tube videos modules

Usage:

_This document will be using the following

Please make sure git, python, postgresql and is installed in the system.

NOTE for Windows users: Please use Git Bash for the following steps

  1. Configure the project

    mkdir -p logs && mkdir -p media/uploads
    cp examples/local_settings.example app/local_settings.py
    
    nano app/local_settings.py
    # edit local_settings.py
    DB_NAME = 'db_name'
    DB_USER = 'db username'
    DB_PASS = 'db password'
  2. Run the project

    • cd project root dir
    • python3 -m venv venv
    • source venv/bin/active
    • pip3 install -r requirements.txt
    • Run python manage.py makemigrations and python manage.py makemigrations migrate.
    • Run python manage.py tests
    • Create superuser to access the admin panel python manage.py createsuperuser.
    • Run django python manage.py runserver 127.0.0.1:8001 to view the project or application.

    NOTE: Browse to http://127.0.0.1:8001/ to view the site. Admin site is at url /manage changed from default to keep the project secure. Admin url can be changed in settings.py --> ADMIN_URL

About

Youtube clone backend | Assignment


Languages

Language:Python 100.0%