Giter VIP home page Giter VIP logo

reactjs-auth-django-rest's Introduction

A ReactJS Authentication Demo Site, using django-rest-auth as backend

This demo demonstrate how to build a simple authentication system using ReactJS + React Router + Flux. It also shows that ReactJS can be integrated with django easily with browerify and gulp.

The ReactJS is modified based on this repository.

How to use it

Clone the repository, which is a django project. All reactjs part is under react_src directory.

Django, Django Rest Framework and Django-Rest-Auth

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

JavaScript

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 gulp to build the app script (bundle.js) which will be in static/js directory, and start watching changes. index.html will be generated in templates/project directory.

run gulp build to build without watch

now you can go to localhost:8000 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

lixiandai avatar zachliugis 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.