This project involves three levels of development:
Establishes a many-to-many relationship between students and teachers. The data is stored in tables, and selecting a teacher displays the corresponding students, while selecting students displays the corresponding teachers.
Involves choosing a teacher and a student pair to generate a certificate.
Introduces the verification of certificates using JWT (JSON Web Token) authentication.
-
Create a virtual environment:
python -m venv venv
-
Install the required dependencies:
pip install -r requirements.txt
-
Use the following credentials for the Django admin panel:
- Username: pawan
- Password: 2013
-
Run the local development server:
python manage.py runserver
Access the home page at http://127.0.0.1:8000/.
- Admin Panel: http://127.0.0.1:8000/admin/
- Generate Token: http://127.0.0.1:8000/api/token/
- Generate Certificate: http://127.0.0.1:8000/generate_certificate/
- Certificate List: http://127.0.0.1:8000/certificate_list/
- Verify Certificate: http://localhost:8000/verify-certificate/
-
Run the local server:
python manage.py runserver
-
Use the Thunder Client extension in VS Code.
- Import the collection from
thunder-collection_Certificate Project.json
. - In the "Certificate Project" collection, you have two requests:
verify-certificate
Generate Token
(use this to generate a new token for authentication).
- Import the collection from
-
Run the
Generate Token
request to obtain an access token. -
Copy the access token from the response.
-
Open the
verify-certificate
request, click on Headers, and replaceaccess_token
in theAuthorization
header with the actual access token. -
Run the
verify-certificate
request to test certificate verification.