Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.26 KB

File metadata and controls

68 lines (52 loc) · 1.26 KB

Streaming

Online OTT platform streaming backend web application.

Dependencies

  • Python 3.8
  • PostgreSQL 13

Create Database

How to create mysql database

First, go to your terminal, then follow the command line ```psql psql postgres CREATE DATABASE streaming; ```

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
Then create .env file and paste code from .env_sample file and add validate information.

|--> .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
If you run the app docker, please follow the instructions:

Open your terminal, then run the command for docker

docker compose up

If you want to migrate or something similar, please follow the commands below:

docker-compose exec backend sh
python manage.py makemigrations accounts
python manage.py migrate accounts

Happy coding 😉