Full-stack fitness web application with a React frontend and a Node/Express backend.
frontend/— React + Vite single-page appbackend/— Node.js + Express API, MongoDB models and routes
Prerequisites: Node.js 18+ and npm, MongoDB (local or Atlas).
-
Frontend
cd frontend npm install npm run dev
-
Backend
cd backend npm install
node server.js
Create a .env for the backend (do not commit). Typical values:
MONGO_URI=your_mongo_connection_string
JWT_SECRET=your_jwt_secret
PORT=5000
This repo includes .gitignore files at the project root and inside frontend/ and backend/ to exclude node_modules, build artifacts, and environment files.
- See
frontend/README.mdandbackend/README.mdfor per-project details. - If you plan to deploy, set production environment variables and build the frontend with
npm run buildinfrontend/.