How tanpreetjolly/creativerse works
Project Type and Purpose
• This is a full‑stack blogging platform (“BlogMinds”) with AI‑powered content creation.
• Frontend: React + TypeScript (Vite, Tailwind, Redux slices, Context)
• Backend: Node.js + Express + TypeScript serving RESTful APIs
• Data: MongoDB (models folder), caching layer (utils/cache), optional Recommendation microservice
File Structure Analysis
• Top‑level:
• client/ → React SPA source code, pages, components, assets, API wrappers
• controllers/, routes/ → Express route definitions and business logic
• models/ → Mongoose schemas for blog, user, comment
• utils/ → cloudinary/multer image handlers, cache, sendMail utilities
• DBseeder/ → scripts to seed MongoDB with sample data
• Recommendation-Server/ → separate microservice for personalized recommendations
• Config: Dockerfile, .env.example, pnpm‑workspace.yaml, tsconfig.json
• Middleware: auth, error‑handler, paginator
README Insights
• AI integration endpoints for text completion and image generation
• Features: drag‑and‑drop, asset folder CRUD, search, infinite scroll, trending blogs, commenting, liking
• Frontend SPA (client browser)
• API Gateway / Express Server (server.ts)
• MongoDB Database
• Cache Layer (e.g., Redis via utils/cache)
• Recommendation Service (Recommendation-Server)
• External AI Service (OpenAI or similar)
• Cloudinary (image storage)
• Email Service (SMTP/SendGrid via utils/sendMail)
• Browser → HTTP(S) → Express Server
• Express Server ↔ MongoDB (CRUD on blogs, users, comments)
• Express Server ↔ Cache Layer (read/write hot data, trending counts)
• Express Server → Recommendation Service (on blog lists)
• Express Server → External AI API (text completion, image generation)
• Express Server → Cloudinary (image upload/download via multer)
• Express Server → Email Service (verification, notifications)
• DBseeder scripts → MongoDB (initial data load)
c. Architectural Patterns & Principles
• Layered architecture: router → controller → service → model
• Separation of concerns: image handling, mailing, caching are isolated utilities
• Microservice for recommendations for scalability
• Stateless API + SPA on the frontend
• Redux + Context for client state management
• Docker for containerization
d. Key Technologies & Frameworks
• Frontend: React, TypeScript, Vite, Tailwind CSS, Redux Toolkit
• Backend: Node.js, Express, TypeScript, Mongoose
• Database: MongoDB
• Cache: Redis (or in‑memory)
• AI: OpenAI/Text‑generation API
• Storage: Cloudinary
• Email: nodemailer/SendGrid
• Deployment: Docker, GitHub Actions (implied by .github folder)