How mushfiqbh/life-insight works
Project type and purpose
• LifeInsight is a full-stack web application for personal and organizational growth analytics.
• Frontend built with Next.js/React, TypeScript, Redux, Tailwind CSS.
• Backend built with Node.js, Express, MongoDB.
• Key features: user authentication, data visualization, goal tracking, file uploads via Cloudinary.
File structure
• Top-level “backend” folder contains controllers, routes, models, middleware, utility functions, uploads directory, and server entry point.
– Follows MVC pattern:
· Models under backend/models
· Controllers under backend/controllers
· Routes under backend/routes
– Middleware for authentication in backend/middleware
– Utils for Cloudinary integration under backend/utils
• Top-level “frontend” folder: Next.js app directory under frontend/app plus a large components folder, hooks, context, Redux slices, public assets, Tailwind config.
– app folder uses Next.js file-based routing for pages and layouts (public pages, admin pages, search, login, etc.)
– components folder split into admin, auth, home, shared, showcase, ui components
– state management via Redux (frontend/redux) and a SearchContext
– i18n, theme-provider, and language detection utilities
• CI/CD: .github/workflows/main_lifeinsight.yml
• API documentation file: API-DOCS.md
• Environment config is in .env files for both frontend and backend.
README for additional insights
• Confirms tech stack, authentication via JWT/OAuth
• Deployment on Vercel (frontend) and Azure App Service (backend)
• Uses Multer (file uploads) and Cloudinary
• API responses in JSON