Fading Coder

One Final Commit for the Last Sprint

Django REST API Backend Implementation Details

Session Management After Login Upon successful authentication, the system generates a unique token string which is stored in the browser's cookies and also saved in the server-side session storage along with user identification. Authentication Middleware Implementation To enforce login protection fo...

Building a Fishing Venue Reservation Mini-program: Backend Architecture and Core Logic

Background A platform designed for fishing venue owners and enthusiasts to facilitate information sharing and service access. Feature Planning Venue Booking: Users can browse locations, facilities, and availability of different venues, selecting date, time slot, and number of participants for bookin...

Creating an Application in Django

In Django, an application (app) is a self-contained module that implements specific website functionality.Apps help organize project code into reusable, modular components. For instance, you might create an "articles" app for blog posts, a "users" app for authentication, or a &qu...

Minimalist Spring Security 6 + Front-Back Separation Implementation: Focus on Understanding Workflow

Minimalist Spring Security 6 + Front-Back Separation Implementation: Focus on Understanding Workflow Spring Security is relatively simple to use in Spring MVC, with built-in login, logout pages, session management, etc. However, how to implement a front-back separated project with Spring Security is...

Implementing Excel File Stream Generation and Download in Django Backend

Required Third-Party Libraires pip install pandas numpy openpyxl Database Query and Excel Stream Creation import pandas as pd import io from django.db import connection def generate_excel_stream(record_numbers): """ Queries database and creates an Excel file in memory. Returns a Bytes...

Building Asynchronous Web APIs Using FastAPI

FastAPI leverages Starlette and Pydantic to deliver high-performance Web API development in Python. Its asynchronous support and automatic data validaiton make it suitable for modern microservices architectures. Environment Configuration Install the core framework using the package manager: pip inst...

Node.js 5-Minute Guide: Connect to Redis and Execute Read/Write Operations

Redis Fundamentals Redis is an in-memory data storage system, delivering far faster read and write performance then traditional disk-based databases. While it does not persist data by default (though optional persistence mechanisms exist), it is ideal for ephemeral use cases like tracking user sessi...

Managing HTTP Cookies in Node.js

Cookies remain a relevant mechanism for storing small amounts of string data in web applications, despite the prevalence of LocalStorage and SessionStorage. In HTTP communication, cookies are automatically included in requests sent from the client to the server, and servers can set cookies with broa...