Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbrsagor/streaming

The application Django-backend pure restful API. There are a huge standard custom functionality.
https://github.com/mbrsagor/streaming

api api-server django django-application django-framework django-rest-framework drf drf-example python3

Last synced: 1 day ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:
```bash
git clone https://github.com/mbrsagor/streaming.git
cd streaming
```

Create a python virtual environment:

```bash/zsh
virtualenv venv --python=python3.8
pip install psycopg2-binary
```

Activate it:

```bash/zsh
source env/bin/activate
```

###### Then create ``.env`` file and paste code from `.env_sample` file and add validate information.

-------------------------------------------
```bash
|--> .env-sample
|--> .env
```

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

```bash
docker compose up
```
If you want to migrate or something similar please follow below commands:
```bash
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 :wink: