Skip to content

Restful Web API for a classroom application similar to Google Classroom

Notifications You must be signed in to change notification settings

shashank-556/Classroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classroom

Restful Web API implemented in django for a classroom application similar to Google Classroom
Check out the documentation of the API.
Here is the link of the for the backend api.
The project uses djangorestframework-simplejwt for authorization and MySQL as its backend database.

Installation

It is advisable to first create a virtual environment for this project. Then proceed with installation

# clone the repo
$ git clone https://github.com/shashank-556/Classroom.git

# change the working directory to Classroom
$ cd Classroom

# install the requirements
$ python3 -m pip install -r requirements.txt

Databse setup

Create a secrets.json file (in the same folder with manage.py) with following keys:

{
    "SECRET_KEY": "",
    "DB_PASSWORD": "",
    "DB_USER": "",
    "DB_NAME": "",
    "DB_HOST": "",
    "DB_PORT": "",
    "MEDIA_ROOT":""
}

SECRET_KEY is the django-project secret key which is used in cryptographic signing. You can generate a secret key by creating a dummy or temporary django project (you can find it in settings.py).
Rest of the keys are related to your database. You can use SQLite by changing the DATABASES object in settings.py. In that case you won't need all the DB_ keys.
MEDIA_ROOT is the location of your media folder for storing files.

About

Restful Web API for a classroom application similar to Google Classroom

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages