Skip to content

Tutorial showing how to add qr code login with django, channels on the backend and nextjs frontend

Notifications You must be signed in to change notification settings

mabdullahadeel/yt-django-qr-code-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Like QR Code Login

This repo holds the code for a demo app that shows how to use QR codes to login to a web app.


Important Links


Backend

Tech Stack

  • Django
  • Django Rest Framework
  • Django Channels
  • Postgresql
  • Redis

Prerequisites

  • Python >=3.9

How to run

  • Clone the repo

  • Move to the backend folder

     cd backend
  • Create a virtual environment by running

    python -m venv env
    #OR
    python -m virtualenv env
  • Activate the virtual environment

     # Linux or Mac
     source env/bin/activate
    
     # Windows
     env\Scripts\activate
  • Install dependencies

    pip install -r requirements.txt
  • To setup the database, either use docker or install postgresql on your machine.

    • To use docker, run
      docker-compose -f local.yml up -d
    • To install postgresql on your machine, follow the instructions here
  • Apply migrations

    python manage.py makemigrations
    python manage.py migrate
  • To run the backend server, run

    python manage.py runserver

Frontend

Tech Stack

  • React/Nextjs
  • Typescript
  • ChakraUI

Prerequisites

  • Node >=16

How to run

  • Clone the repo

  • Move to the frontend folder

     cd frontend
  • Install dependencies

      npm install
    
      #Or
    
      yarn
  • To run the frontend server, run

      npm run dev
    
      #Or
    
      yarn dev
  • The frontend will start on https://localhost:3000

About

Tutorial showing how to add qr code login with django, channels on the backend and nextjs frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published