Giter VIP home page Giter VIP logo

williamren / angular-django-registration-auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tivix/angular-django-registration-auth

0.0 2.0 0.0 417 KB

This AngularJS module is designed to provide an authentication interface between a SPA (single page app), and a Django application running the Django REST Auth app. In addition to providing a client-side API, this module includes pages to support authentication and user profiles right out of the box.

Home Page: http://www.tivix.com

JavaScript 47.34% ApacheConf 28.47% HTML 22.53% CSS 1.66%

angular-django-registration-auth's Introduction

AngularJS Module for Django REST Auth

To setup this module as a boilerplate project...

First, clone the repository. git clone [email protected]:Tivix/angular-django-registration-auth.git

Change your directory to the cloned project. cd angular-django-registration-auth

Then install the project prerequisites. npm install; bower install;

In app/scripts/services/djangoAuth.js, customize API_URL and use_session to meet your project's requirements.

To integrate this module into an existing project...

First, clone the repository. git clone [email protected]:Tivix/angular-django-registration-auth.git

The contents of the app/scripts folder can be copied to your own project. Exclude controllers and app.js if you do not intend to use the default views/routes. (This will provide API access from the djangoAuth module only.)

Please note: you will need to include dependencies from bower.json to support the default views/controllers. They require bootstrap and its dependencies to function correctly.

If you intend to use the default views/routes, please also copy the contents of app/views to your own views folder.

Inject the angularDjangoRegistrationAuthApp into your own module.

Inject the djangoAuth service into any controllers which you need programmatic access to Django REST Auth.

In app/scripts/services/djangoAuth.js, customize API_URL and use_session to meet your project's requirements. Alternatively, you can change these settings from a controller by changing the djangoAuth.API_URL and djangoAuth.use_session variables.

Todo

Add support for JWT (JSON web tokens)

Better support for Bower and Grunt

Pick a better name for the module :\

angular-django-registration-auth's People

Watchers

william avatar 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.