Giter VIP home page Giter VIP logo

jwt-react-django's Introduction

Django JWT React Boilerplate

A boilerplate project setup for Django, JWT and React. The project contains backend user authentication with the Django REST Framework and Simple JWT. The frontend has react redux setup for user authentication by storing the token in localstorage.

Features

  • Django-based backend

    • Django
    • Django REST Framework used for building Web APIs.
    • Simple JWT provides a JSON Web Token authentication backend for the Django REST Framework.
    • Separate settings for different environments (base/local/production)
    • Python 3.6 or later
    • [SPA] Accessible from port 3000 for local development
  • Frontend app with JavaScript (ES2015), React and Sass

    • React for fast modular user interfaces
    • Redux for managing application state.
    • Semantic UI React used for CSS stylesheets & React components.
    • [SPA] Accessible from port 8000 for local development

Prerequisites

Latest Version of any following Browser which supports HTML5 and JavaScript ES6.

Apple Safari
Google Chrome
Mozilla Firefox
Opera
Python version 3.6 or higher.
Node 12
Git
pipenv

Backend development workflow

To use this template, first ensure that you have Pipenv 2020.8.13 available.

After that, you should:

  1. Clone the repo and install the dependencies.
    git clone https://github.com/Wambuilucy/django-jwt-react-boilerplate.git
    
  2. Activate the virtualenv created by pipenv:
    pipenv shell
    
  3. Install the requirements of the project template by running in django directory:
    pipenv install
    
  4. Apply the migrations:
    python manage.py migrate
    
  5. Run the Django development server:
    python manage.py runserver
    

Frontend development workflow

First ensure that you have Node 14.15.0 available.

  1. In new terminal window go to the frontend directory:
    cd react/djrb-gui
    
  2. Install the requirements to set up the library by running:
    npm install
    
  3. Running the project:
    npm start
    
  4. Building a distribution version:
    npm run build
    

Authors

License

This project is licensed under the MIT License.

jwt-react-django's People

Contributors

wambuilucy avatar

Stargazers

 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.