Skip to content

pwldp/drf-angular-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drf-angular-jwt

Simple application boilerplate using:

Installation

Please follow those steps:

  • clone respository: git clone https://github.com/pwldp/drf-angular-jwt

  • change directory: cd drf-angular-jwt

  • install required Python modules: pip install -r requirements.txt

  • change directory: cd application

  • init Django application: python ./manage.py syncdb, and create user (username: admin and password: abc123)

  • run application: python ./manage.py runserver (this serves application on localhost on port 8000)

Run in browser

  • run browser window

  • open page http://localhost:8000, it shows home page

  • open page http://localhost:8000/api, it shows DRF API Root, please login (admin:abc123) to get access

  • open page http://localhost:8000/admin, it gets access to Django's admin pages

API Examples

  • Get token: curl -X POST -d "username=admin&password=abc123" http://localhost:8000/api/token-auth/

  • Get users list: curl -H "Authorization: JWT <TOKEN>" http://localhost:8000/api/users/

About

DjangoRestFramework + Angularjs + JWT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published