mbrsagor / streaming

The application Django-backend pure restful API. There are a huge standard custom functionality.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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

Happy coding 😉

About

The application Django-backend pure restful API. There are a huge standard custom functionality.


Languages

Language:Python 99.2%Language:Dockerfile 0.8%