https://github.com/stenwire/django_drf_auth
https://github.com/stenwire/django_drf_auth
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stenwire/django_drf_auth
- Owner: stenwire
- Created: 2023-09-10T06:31:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-13T12:03:51.000Z (over 2 years ago)
- Last Synced: 2025-09-06T02:52:45.094Z (9 months ago)
- Language: Python
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔐 Token Authentication in DRF
### ♨️API Docs:
[Go-to swagger docs](http://localhost:8000/swagger/)
```shell
[][][][][] [][][][] [][][][]
[] [] [] [] []
[] [] [] [] [] [][][][]
[] [] [] [] []
[][][][][] [] [] []
```
### ⚒️ Tools:
- DRF
- Makefile
- Python pipenv
# ⚙️ Setup
- clone repo
```shell
git clone
```
- Go into the folder
```shell
cd :\\path\\to\\cloned_repo
```
- install pipenv
```shell
pip install pipenv
```
- activate pipenv
```shell
make shell
```
- install dependencies
```shell
make install
```
- Create a copy of `.env.example` and rename to `.env` then fill in the values
- Run Migrations with:
`make makemigrations`
`make migrate`
# 🏃 To run app:
```shell
make up
accessible through: http://127.0.0.1:8000/
```
- Create admin user with:
> whilst in project directory
`make py-shell`
Then:
```shell
>>> from authme.models import CustomUser
>>> CustomUser.objects.create_user(email="youremail@example.com",username="johnDoe707", password="strongpassword")
```
- To run est:
`make test`