https://github.com/shearichard/drf-auth-sandbox
A sandbox project for demoing different approaches to Django Rest Framework Authentication
https://github.com/shearichard/drf-auth-sandbox
authentication demo-app django django-rest-framework
Last synced: 2 months ago
JSON representation
A sandbox project for demoing different approaches to Django Rest Framework Authentication
- Host: GitHub
- URL: https://github.com/shearichard/drf-auth-sandbox
- Owner: shearichard
- Created: 2024-01-09T01:45:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T21:03:05.000Z (over 1 year ago)
- Last Synced: 2025-03-02T10:09:17.243Z (over 1 year ago)
- Topics: authentication, demo-app, django, django-rest-framework
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/shearichard/drf-cc-sandbox)
[](https://github.com/agconti/cookiecutter-django-rest)
# Django Rest Framework Authentication Demonstrator
Exposing various authentication options in Django Rest Framework to allow for demonstrations and training.
## Prerequisites
- [Docker](https://docs.docker.com/docker-for-mac/install/)
## Databases
This project is setup to use Postgres in the long term but initially uses sqlite. A flag in the [config.common](https://github.com/shearichard/drf-auth-sandbox/blob/2582af4a410917d813f1f2c1f7d5ad2206dddafe/drf-cc-sandbox/config/common.py#L8) settings module determines which is used. When the switch back to Postgres is made it will be necessary to re-run the migrations and recreat the superuser.
## Local Development
Start the dev server for local development:
```bash
docker-compose up
```
Run a command inside the docker container:
```bash
docker-compose run --rm web [command]
```