https://github.com/stenwire/talentsync
♨️
https://github.com/stenwire/talentsync
Last synced: 10 months ago
JSON representation
♨️
- Host: GitHub
- URL: https://github.com/stenwire/talentsync
- Owner: stenwire
- License: gpl-3.0
- Created: 2024-01-24T04:04:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T06:57:24.000Z (over 2 years ago)
- Last Synced: 2025-02-23T02:33:23.480Z (over 1 year ago)
- Language: Python
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔐 jWT Token Authentication in DRF Blog API
### ♨️API Docs: [Go-to swagger docs](http://localhost:8000/swagger/)
## To run test: `make test`
### ⚒️ Tools:
- DRF
- Makefile
- Python pipenv
- Swagger
# ⚙️ Setup
```shell
- clone repo
git clone
- Go into the folder
cd :\\path\\to\\cloned_repo
- install pipenv
pip install pipenv
- activate pipenv
make shell
- install dependencies
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")
```