任务
This commit is contained in:
11
tasks/task_002.txt
Normal file
11
tasks/task_002.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
# Task ID: 2
|
||||
# Title: Database Setup (MongoDB & Redis)
|
||||
# Status: pending
|
||||
# Dependencies: 1
|
||||
# Priority: high
|
||||
# Description: Set up MongoDB for persistent data storage and Redis for caching and real-time data. This includes configuring connections, defining initial schemas for core entities (User, Room), and ensuring database access from the backend.
|
||||
# Details:
|
||||
Install and configure MongoDB and Redis instances (e.g., via Docker Compose). Implement Mongoose models for User and Room. Create Redis client connection and basic `set`/`get` functions. Ensure secure connection strings and environment variable handling.
|
||||
|
||||
# Test Strategy:
|
||||
Write unit tests for database connection and basic CRUD operations on a dummy collection for MongoDB. Verify Redis `set`/`get` functionality. Confirm database schemas are correctly applied.
|
||||
Reference in New Issue
Block a user