- 添加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>
1.9 KiB
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 registrationPOST /api/auth/login- User loginPOST /api/auth/logout- User logoutGET /api/auth/me- Get current userPOST /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