Skip to content

Django Rest Framework JWT User Auth, Register, Login. Angular JWT Session

License

Notifications You must be signed in to change notification settings

MarlonJD/DjangoAngularJWT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DjangoAngularJWT

This project is the example of the JWT usage with DRF and Angular In frontend/angular, git submodule and it's the angular part. For quick start, please see the Getting Started section. I made simple user auth, user register, login and post microblog.

Packages

  • Django 2.1.1
  • DjangoRestFramework
  • DjangoCorsHeader
  • DjangoRestFramework-simpleJWT
  • Angular 8.1.1
  • Angular-jwt
  • Others

Getting Started

  1. Clone the project (You should use --recursive to download submodules, for this project it's angular project)
$ git clone --recursive https://github.com/MarlonJD/DjangoAngularJWT.git
  1. Go to project folder
$ cd DjangoAngularJWT
  1. Create Python virtual env, (wait a little bit)
$ python -m venv venv
  1. Activate virtual env for python. (you should see (venv) prefix on your terminal)
$ source venv/bin/activate
  1. Install the packages needs.
$ pip install -r requirements.txt
  1. Migrate the Django for database etc.
$ python manage.py migrate
  1. And Django is ready to use. Start server on 8000 port. You can see the website on http://127.0.0.1:8000
$ python manage.py runserver

Angular the Front-Side

Please see the Angular Project.

About

Django Rest Framework JWT User Auth, Register, Login. Angular JWT Session

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages