Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mbrsagor/streaming
- Owner: mbrsagor
- Created: 2020-07-04T06:37:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T03:13:34.000Z (30 days ago)
- Last Synced: 2024-10-17T15:46:55.229Z (28 days ago)
- Topics: api, api-server, django, django-application, django-framework, django-rest-framework, drf, drf-example, python3
- Language: Python
- Homepage:
- Size: 17.4 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: