/video_management

A system for uploading videos and tracking the progress using Websockets In Django

Primary LanguagePython

Video Upload Manager

A system for uploading videos and tracking the progress using Websockets In Django

How to run:

  1. install packages in requirements.txt with
pip install -r requirements.txt
  1. Create database based on the values specified in .env file.
  2. Go to the app directory
cd app
  1. run migrations:
python manage.py migrate
  1. run the app
daphne -v 2 app.asgi:application

Username and passwords:

  1. Admin
    • username: admin
    • password: mjhcHt7eFfpAH[;HJmx#
  2. user1 (not admin):
    • username: user1
    • password: 1111

Upload Video page: To upload video and check video progress check this address: http://127.0.0.1:8000/api/video/upload/

username and password is hardcoded in html file because the only purpose of this page is checking the websocket functionality

alt text

The endpoints:

The swagger page address: http://127.0.0.1:8000/api/docs/

alt text

Keycloak

I have created an instance of keycloak on Cloud-IAM and the credentials are in .env file.

An app named keycloakAuth is added to the project to handle authentication and authorization. You can get accesss token from this endpoint: http://127.0.0.1:8000/api/keycloakAuth/simple-login/ and then add it to the endpoints as Bearer Token.