https://github.com/mich0232/drf-jwt-social-tutorial
Django REST framework API with JWT Authentication and social login using Google OAuth
https://github.com/mich0232/drf-jwt-social-tutorial
django django-rest-framework google google-sign-in jwt-authentication
Last synced: 9 months ago
JSON representation
Django REST framework API with JWT Authentication and social login using Google OAuth
- Host: GitHub
- URL: https://github.com/mich0232/drf-jwt-social-tutorial
- Owner: Mich0232
- Created: 2024-07-08T14:58:37.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T17:00:41.000Z (almost 2 years ago)
- Last Synced: 2025-06-27T01:40:34.731Z (12 months ago)
- Topics: django, django-rest-framework, google, google-sign-in, jwt-authentication
- Language: Python
- Homepage: https://medium.com/@michal.drozdze/django-rest-framework-jwt-authentication-social-login-login-with-google-8911332f1008
- Size: 259 KB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django REST framework - JWT Token authentication with Social providers
This is an example fullstack project of Django REST framework API using JWT Authentication with Google sign in.
## Technologies
**API**
- Python 3
- Django 5
- Django REST Framework
- dj-rest-auth
Frontend
- React
- react-router-dom
- yarn
- Typescript
## Getting started
**Django API**
Create a new Python virtual environment
```shell
python -m venv .venv
```
Activate the virtual environment
```shell
source .venv/bin/activate
```
Install required packages
```shell
python -m pip install -r requirements.txt
```
Run Django server
```shell
python manage.py runserver
```
Frontend application
1. Make sure you have Node installed
2. Install modules `yarn install`
3. Create `.env.local` file and provide Google Client ID
4. Run `yarn dev`