Git Product home page Git Product logo

django_wolfpack's Introduction

๐Ÿš€ JWT System

A Django project with Django Rest Framework (DRF) for JWT-based authentication, including a custom user model and authentication serializer.

โœจ Features

  • ๐Ÿ› ๏ธ Custom User Model with email-based authentication.
  • ๐Ÿ”‘ JWT-based authentication for user registration and login.
  • ๐ŸŒ REST APIs for user registration and login.
  • โœ… Proper validation and error handling in APIs.

๐Ÿ“ Prerequisites

  • ๐Ÿ Python 3.10 or above
  • ๐ŸŒŸ Django 3.2 or above
  • ๐Ÿ“ฆ Django Rest Framework
  • ๐Ÿ”’ Django Rest Framework SimpleJWT

โš™๏ธ Setup Instructions

1. Clone the Repository

gh repo clone sanjaraiy/Django_Wolfpack
cd jwtsystem

2. Create and Activate Virtual Environment (on Window)

python -m venv env
.\env\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Setup Environment Variables

Create a .env file in the root directory and add the following variables:

SECRET_KEY=your_secret_key_here
DEBUG=True

5. Run Migrations

python manage.py makemigrations
python manage.py migrate

6. Create Superuser

python manage.py createsuperuser

Run the Server

python manage.py runserver

๐Ÿ—‚๏ธ Project Structure

jwtsystem/
โ”œโ”€โ”€ jwtsystem/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ asgi.py
โ”‚   โ”œโ”€โ”€ settings.py
โ”‚   โ”œโ”€โ”€ urls.py
โ”‚   โ””โ”€โ”€ wsgi.py
โ”œโ”€โ”€ myapp/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ admin.py
โ”‚   โ”œโ”€โ”€ apps.py
โ”‚   โ”œโ”€โ”€ models.py
โ”‚   โ”œโ”€โ”€ serializers.py
โ”‚   โ”œโ”€โ”€ tests.py
โ”‚   โ”œโ”€โ”€ urls.py
โ”‚   โ””โ”€โ”€ views.py
โ”œโ”€โ”€ manage.py
โ””โ”€โ”€ requirements.txt

django_wolfpack's People

Contributors

sanjaraiy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.