Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denisorehovsky/django-elm-auth-with-jwt
https://github.com/denisorehovsky/django-elm-auth-with-jwt
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/denisorehovsky/django-elm-auth-with-jwt
- Owner: denisorehovsky
- Created: 2017-08-25T09:21:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T08:59:40.000Z (over 7 years ago)
- Last Synced: 2024-04-22T13:34:05.325Z (8 months ago)
- Language: Elm
- Size: 346 KB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-BigData - JWT auth with Django + Elm - JSON Web Token (JWT) authentication using Django (backend) and Elm (frontend). (Examples)
README
---
## Description
`django-elm-auth-with-jwt` is an example of how you can implement JSON Web Token (JWT) authentication using **django & django rest framework** as a backend and **elm** as a frontend.
## How to run
Clone the repository:
```zsh
➜ git clone https://github.com/apirobot/django-elm-auth-with-jwt.git
```Create and activate virtualenv:
```zsh
➜ virtualenv -p python3 .venv
➜ source .venv/bin/activate
```Install dependencies:
```zsh
../backend ➜ pip install -r requirements.txt
../frontend ➜ elm-package install
```Run migrations:
```zsh
../backend ➜ python manage.py makemigrations
../backend ➜ python manage.py migrate
```Start up backend:
```zsh
../backend ➜ python manage.py runserver
```Start up frontend using `elm-live`:
```zsh
../frontend ➜ elm-live --port=3000 --output=elm.js src/Main.elm --pushstate --open --debug
```We are done.
- Frontend: http://localhost:3000/
- Backend: http://localhost:8000/