MyChat
is an online platform video calling application built using AgoraSDK for JavaScript, Django.
-
Before running this project:
-> Create a virtual environment, in Windows command is as follows:
pythom -m venv env
-> To activate:
env/Scripts/activate
-
To run this project do the following:
Pre-requisites: Python, pip and django should be installed in your system. All the coding is done using VScode.
- To install the dependencies:
pip install -r requirements.txt
- Make the migrations:
python manage.py makemigrations
- Migrate the tables:
python manage.py migrate
- Create a superuser for your project:
python manage.py createsuperuser
This will prompt you to enter username, email and password for the superuser.
- To install the dependencies:
In order to use this project you will need to replace the agora credentials in views.py
and streams.js
.
Create an account at agora.io and create an app
. Once you create your app with token and appid authentication, you will want to copy the appid
& appCertificate
to update views.py
and streams.js
.
def getToken(request):
appId = "YOUR APP ID"
appCertificate = "YOUR APPS CERTIFICATE"
......
....
const APP_ID = 'YOUR APP ID'
....
python manage.py runserver
- Home page: