https://github.com/varshamohan08/blog_application_system
This repository contains a Django-based blog application with JWT authentication. It includes features for user sign-up, login, and CRUD operations for blogs, all secured with JWT tokens. The project is dockerized and includes error logging and pagination for blog lists.
https://github.com/varshamohan08/blog_application_system
django django-rest-framework docker jwt-authentication
Last synced: about 1 month ago
JSON representation
This repository contains a Django-based blog application with JWT authentication. It includes features for user sign-up, login, and CRUD operations for blogs, all secured with JWT tokens. The project is dockerized and includes error logging and pagination for blog lists.
- Host: GitHub
- URL: https://github.com/varshamohan08/blog_application_system
- Owner: varshamohan08
- Created: 2024-06-29T14:35:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-04T09:05:38.000Z (11 months ago)
- Last Synced: 2025-02-15T07:49:40.829Z (3 months ago)
- Topics: django, django-rest-framework, docker, jwt-authentication
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog Application System
This repository contains a Django-based blog application system with JWT authentication. The application provides features for user authentication (sign up, login, logout), and CRUD operations for blogs.### Features
- User Authentication (Sign Up, Login, Logout)
- JWT Authentication for secure access
- Create, Read, Update, and Delete (CRUD) operations for blogs
- Pagination for listing blogs
- Detailed logging of errors### Installation
Clone the repository:
```
git clone https://github.com/varshamohan08/blog_application_system.git
```
Navigate to the project directory:
```
cd blog_application_system
```
Install the required packages:
```
pip install -r requirements.txt
```
Run the development server:
```
python manage.py runserver
```
### Dockerization
To run the application using Docker, follow these steps:Build the Docker image:
```
docker build -t blog_app .
```
Run the Docker container:
```
docker run -p 8000:8000 blog_app
```
### Logging
Errors are logged to log/error.log. This can be configured in the ins_logger module.### Pagination
Pagination for the blog list is handled by the BlogPagination class, which sets the page size to 10.### Authentication
JWT authentication is used to secure the endpoints. Ensure to include the JWT token in the Authorization header as Bearer .### API Endpoints
The detailed description of the API endpoints can be found in the [api_documentation.md](api_documentation.md) file.