Streaming
Online OTT platform streaming backend web application.
Dependencies
- Python 3.8
- PostgreSQL 13
Create Database
First go to your terminal then follow the command line ```psql psql postgres CREATE DATABASE streaming; ``` How to create mysql database
Setup:
git clone https://github.com/mbrsagor/streaming.git
cd streaming
Create a python virtual environment:
virtualenv venv --python=python3.8
pip install psycopg2-binary
Activate it:
source env/bin/activate
.env
file and paste code from .env_sample
file and add validate information.
Then create |--> .env-sample
|--> .env
pip install -r requirements.txt
./manage.py makemigrations accounts
./manage.py migrate accounts
./manage.py migrate
./manage.py runserver
./manage.py createsuperuser
docker
please follow the instructions:
If you run the app Open your terminal then run the command for docker
docker compose up
If you want to migrate or something similar please follow below commands:
docker-compose exec backend sh
python manage.py makemigrations accounts
python manage.py migrate accounts
python manage.py migrate
python manage.py makemigrations
python manage.py createsuperuser