Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edmartt/django-task-backend
Django Task Backend is a small project for storing daily tasks
https://github.com/edmartt/django-task-backend
django jwt jwt-authentication openapi3 python python3 rest rest-api restful-api swagger swagger-ui
Last synced: about 1 month ago
JSON representation
Django Task Backend is a small project for storing daily tasks
- Host: GitHub
- URL: https://github.com/edmartt/django-task-backend
- Owner: Edmartt
- Created: 2024-01-04T08:20:55.000Z (11 months ago)
- Default Branch: dev
- Last Pushed: 2024-08-07T19:29:25.000Z (3 months ago)
- Last Synced: 2024-10-02T09:14:18.243Z (about 1 month ago)
- Topics: django, jwt, jwt-authentication, openapi3, python, python3, rest, rest-api, restful-api, swagger, swagger-ui
- Language: Python
- Homepage:
- Size: 2.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Task Backend
Django Task Backend is a small project for storing daily tasks. I was mainly interested in testing the power of Django without using any extension to make a restful backend service.
### Features
- Register endpoint for new users
- Login endpoint for existant users
- After logging in, the response is a JWT to be able to create new tasks or check existing ones
- Each user has unique tasks that can be accessed by the owner of the tasks## Requirements
- Python 3.11+
- SQLite
- http client: POSTMAN, Insomnia, cURL### Running Locally
```
git clone https://github.com/Edmartt/django-task-backend.git
```or ssh instead:
```
git clone [email protected]:Edmartt/django-task-backend.git
```browse into project directory:
```
cd django-task-backend/
```create virtual environment
```
python -m venv env
```
activate virtual environment```
. env/bin/activate
```
install dependencies```
pip install -r requirements.txt
```set environment variables following the [.envrc.example](https://github.com/Edmartt/django-task-backend/blob/main/.envrc.example) file and run
apply migrations
```
python manage.py migrate
```run
```
python manage.py runserver
```#### Note
api documentation in: `/api/v1/swagger`