Giter Club home page Giter Club logo

reactjs-auth-django-rest's Introduction

A React/Redux Authentication Demo Site, using DjangoRestFramework/DjangoRestAuth

-It is a good demonstration of how to integrate react/redux with django-rest-framework to build a fully functional web application.

-It can also serve as a starter template for building a variety of web applications that needs authentication.

Backend:

  • django 1.11
  • django-rest-framework 3.7
  • django-rest-auth 0.9.2

Frontend:

  • webpack
  • React v16
  • React Router 4
  • Redux
  • reactstrap (Bootstrap 4 components)

How to use it

Clone the repository, which includes both backend and frontend.

Backend: Django, Django Rest Framework and Django-Rest-Auth

cd to django_backend directory

create your virtualenv and activate (python3) under win: python -m venv 'envname'

run pip install -r requirements.txt to install all django dependencies.

run python manage.py migrate to migrate database.

run python manage.py runserver to start django development server to serve the demo site.

the backend server should be localhost:8000.

Frontend: React/Redux

all JavaScript and html source code are within react_src directory, bundle.js will be generated in static/js directory. index.html will be generated in templates/project directory.

run npm install to install all node dependencies.

run npm run start to start the webpack dev server for frontend app.

now you can go to localhost:8083 to access the main page of the demo site.

Issue Reporting

If you have found a bug or feature request, please report them at the repository issues section.

License

MIT

reactjs-auth-django-rest's People

Contributors

zachliugis avatar cipiasentini avatar lixiandai avatar

Watchers

James Cloos 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.