ZTMYO/XiaoShiLiu
About
一个高仿小红书的图文社区项目,支持图文发布、社交互动等核心功能,旨在提供从前端到后端的完整实践范本
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
doc/i18n/README_En.md
Original
XiaoShiLiu
Express + Vue Separation of Frontend and Backend Xiaohongshu Clone Project
A high-fidelity Xiaohongshu-style image-and-text community project supporting core features like image-and-text posting and social interaction, designed to provide a complete frontend-to-backend practice template
Demo Site · Online Docs · Video Introduction
Disclaimer
This project is licensed under the AGPL-3.0 License, free and open-source, for learning and communication purposes only. Resale is prohibited; please beware of scams. For commercial use, retain copyright information to ensure legal compliance. Operational risks shall be borne by the user, and the author is not liable.
📁 The frontend lives in
vue3-project/and the backend inexpress-project/; see the Project Structure Document.
Project Demonstration
PC Interface
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Mobile Interface
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Project Documents
| Document | Description |
|---|---|
| Deployment Guide | Deployment configuration and environment setup instructions |
| Secondary Development Guide | Branding customization, author attribution and open-source license obligations |
| Project Structure | Project directory structure and architecture explanation |
| Database Design | Database table structure design document |
| API Docs | Backend API interface description and examples |
Project Highlights
- Engineering Practice: Complete workflow of environment configuration, code standards, building, and product optimization
- Business Capabilities: Authentication flow, route guards, state management, and interface encapsulation
- Experience Optimization: Skeleton screens, lazy loading, preloading, accessibility, and responsive adaptation
- Component & Layering: Reusable component splitting, domain-based grouping, and alias introduction
- Backend Management: Basic CRUD, data management, configuration panel, supporting subsequent permission and statistics expansion
- Quick Deployment: Docker-based one-click deployment solution, supporting multi-environment configuration and automated deployment
Technology Stack
💡 Click to expand for details
Frontend Technology
- Vue.js 3 - Frontend framework (Composition API)
- Vue Router 4 - Routing management
- Pinia - State management
- Vite - Build tool and development server
- Axios - HTTP client
- VueUse - Vue composable utility library
- CropperJS - Image cropping tool
- Vue3 Emoji Picker - Emoji selector
- svg-captcha - CAPTCHA generator
Backend Technology
- Node.js - Runtime environment
- Express.js - Web framework
- MySQL - Database
- JWT - Identity authentication
- Multer - File upload handling
- bcrypt - Password encryption
- CORS - Cross-origin resource sharing
Third-Party APIs
- Image Storage: Sample images are from Liciyuan Image Hosting, providing stable image storage service
- Image Upload: User-uploaded images use Xiarou API to ensure stability and speed
- IP Location Query: IP location service uses Baidu opendata — free, no API key required — for accurate IP positioning
Environment Requirements
| Component | Version Requirement |
|---|---|
| Node.js | >= 18.0.0 |
| MySQL | >= 5.7 |
| MariaDB | >= 10.3 |
| npm | >= 8.0.0 |
| yarn | >= 1.22.0 |
| Browser | ES6+ supported |
The above are the minimum version requirements for traditional local development; Docker image versions and prerequisites are covered in the Deployment Guide.
Quick Start
1. Environment Configuration
Both the frontend and backend have their own .env, copied from the .env.example in the corresponding directory. In the backend express-project/.env, confirm at least these four items:
DB_PASSWORD=123456 # Database password
JWT_SECRET=xiaoshiliu_secret_key_2025 # JWT secret; be sure to change it in production
API_BASE_URL=http://localhost:3001 # Backend public access address
CORS_ORIGIN=http://localhost:5173 # Frontend address allowed for CORS
The frontend vue3-project/.env only needs VITE_API_BASE_URL pointing to the backend API (defaults to http://localhost:3001/api).
All other variables (upload strategy, email, IP location, sensitive word detection, etc.) can keep their defaults: see express-project/.env.example and vue3-project/.env.example for the complete list, and the Deployment Guide for what each item means.
2. Install Dependencies
npm install
3. Start Development Server
npm run dev
The development server runs at http://localhost:5173.
4. Build Production
npm run build # Build to dist/
npm run preview # Local preview, defaults to http://localhost:4173
Star History
Copyright © 2025 - XiaoShiLiu
By ZTMYO
Made with ❤️ & ⌨️
Explore related projects
Loading…





























