GithubHelp home page GithubHelp logo

challenge's Introduction

Django and React Authentication with JWT and HTTP-Only Cookies

This project implements a user authentication system using Django and React. It includes user registration, login, logout, and fetching user data. Authentication is handled using JWT (JSON Web Tokens) and HTTP-only cookies for improved security. The application's frontend is styled using Bootstrap.

The project consists of two directories:

  • client: Contains the React application
  • server: Contains the Django backend

Installation

To run this project on your local machine, follow the steps below:

Prerequisites

Ensure you have the following installed on your local machine:

  • Python 3.8 or higher
  • Node.js v14.15.0 or higher
  • npm 6.14.9 or higher

Setup

  1. Clone the repository:
    git clone https://github.com/metricsnavigator-lab/challenge.git
    
  2. Change into the directory:
    cd challenge
    

Server

  1. Navigate to the server directory:
    cd server
    
  2. Install Django and other dependencies:
    pip install -r requirements.txt
    
  3. Run the server:
    python manage.py runserver
    

Client

  1. Navigate to the client directory:
    cd ../client
    
  2. Install all the dependencies:
    npm install
    
  3. Run the client:
    npm start
    

Now, your application should be running at localhost:3000.

Note:

  • The Django server should be running at the same time as the React application for the system to function properly.
  • The application uses the email field instead of the username field for user identification.

Task

  1. Add an input field for the user's Ethereum wallet address to the registration page. When a user registers an account, this wallet address must be saved to the database.
  2. After login, the homepage must show the balance of the user's Ethereum wallet address.

challenge's People

Contributors

abhisek11 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.