Skip to content

Initial scaffold: Vite React frontend and Express + Mongo backend#2

Open
neeldas0032 wants to merge 1 commit intomainfrom
codex/build-fitness-web-app-frontend
Open

Initial scaffold: Vite React frontend and Express + Mongo backend#2
neeldas0032 wants to merge 1 commit intomainfrom
codex/build-fitness-web-app-frontend

Conversation

@neeldas0032
Copy link
Copy Markdown
Owner

Motivation

  • Provide a runnable full-stack starting point for the Morphy fitness demo including both a client SPA and a production-style API server.
  • Implement core domain boundaries (auth, diet, progress, AI suggestions, notifications) so features can be iterated independently.
  • Add standard infra and DX pieces (request context, structured logging, rate limiting, validation, JWT auth, background jobs) for realistic behavior.

Description

  • Add frontend: Vite + React app with UI components, screens, Tailwind config, styles, index.html, src/main.jsx, package.json, and vite.config.js, plus package-lock.json.
  • Add backend: Express server under server/ with layered layout (routes, controllers, services, models, middleware, jobs, validators, config, utils), plus startup (server/src/server.js), server/package.json, and server/package-lock.json.
  • Implement domain features: authentication (register/login), diet generation and retrieval, progress upsert and weekly fetch, AI suggestions service, notifications creation/listing/mark-read, an hourly cron job to create reminders, and RBAC admin route to list users.
  • Add operational helpers and docs: server/.env.example, server/README.md, server/ARCHITECTURE.md, centralized error handling (ApiError, errorMiddleware), request context and logger middleware, rate limiters, validators, JWT utils, and standardized success response envelope.

Testing

  • No automated tests were added or executed as part of this change (no test harness included).

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant