qia/CHANGELOG.md
ddshi 2dbb1069a6 feat: 初始化项目结构和认证系统
- 添加React + Vite前端项目 (client)
- 添加Node.js + Express后端项目 (server)
- 实现JWT认证系统 (注册/登录/刷新Token)
- 添加Prisma ORM配置 (SQLite/PostgreSQL)
- 配置Tailwind CSS和Mantine组件库

Co-Authored-By: Claude (MiniMax-M2.1) <noreply@anthropic.com>
2026-01-29 15:08:50 +08:00

1.9 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

v0.2.0-alpha - 2026-01-29

Added

  • Authentication System

    • User registration with email/password
    • User login with JWT access/refresh tokens
    • Token refresh endpoint
    • Logout functionality
    • Protected routes middleware
  • API Endpoints

    • POST /api/auth/register - User registration
    • POST /api/auth/login - User login
    • POST /api/auth/logout - User logout
    • GET /api/auth/me - Get current user
    • POST /api/auth/refresh - Refresh access token
  • Security Features

    • Password hashing with bcryptjs (work factor 12)
    • Rate limiting (10 login attempts/15min, 20 registrations/hour)
    • Input validation with Zod
    • JWT authentication middleware
    • Helmet security headers
  • Frontend

    • API client with token management
    • Request interceptor for Authorization header
    • React + Vite project setup
    • Mantine UI components integration
    • Tailwind CSS configuration

Changed

  • Database provider switched from Supabase to self-hosted Node.js backend
  • Schema updated for SQLite (development) and PostgreSQL (production)

Technical

  • Backend: Express.js + TypeScript + Prisma ORM
  • Frontend: React 18 + Vite + Mantine + Tailwind CSS
  • Database: SQLite (dev) / PostgreSQL (prod)
  • Authentication: JWT with access token (7d) + refresh token (30d)

v0.1.0-alpha - 2026-01-28

Added

  • Project initialization
  • Frontend React + Vite project
  • Backend Node.js + Express project
  • Prisma ORM setup
  • Initial database schema