12 lines
825 B
Plaintext
12 lines
825 B
Plaintext
# 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.
|