A full-stack web application where users can sign up, create wellness sessions, save them as drafts, and publish them. Built using the MERN stack (MongoDB, Express.js, React, Node.js) with JWT authentication and auto-save support.
- User Authentication (Register/Login using JWT)
- Create, Save Drafts, and Publish Wellness Sessions
- Auto-save functionality during session writing
- Dashboard shows only published sessions (not protected)
- Responsive UI with React + Vite
Frontend: React, Vite, CSS, axios, React Router dom
Backend: Node.js, Express.js
Database: MongoDB Atlas, mongoose
Authentication: JWT, bcrypt
Deployment: Render (Backend), Vercel (Frontend), MongoDB Atlas (Database)
Wellness_Session_Platform-main/
├── backend/ # Express server & API logic
│ ├── config/ # DB config (MongoDB)
│ ├── controllers/ # Auth and Session logic
│ ├── middleware/ # Auth middleware
│ ├── models/ # Mongoose schemas
│ ├── routes/ # API routes
│ └── server.js # Entry point of backend
│
├── frontend/ # React + Vite frontend
│ ├── public/ # Static assets
│ └── src/ # Components and pages
│ ├── components/ # Reusable UI components
│ ├── pages/ # Page-level components
│ └── main.jsx # App entry point
- Node.js & npm
- MongoDB Atlas account
- Clone the repository
git clone https://github.com/SatyamGarg297/Wellness_Session_Platform.git
cd wellness-session-platform
- Backend Setup
cd backend
npm install
# Create a .env file with the following variables:
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
PORT=5000
npm start
- Frontend Setup
cd frontend
npm install
# Create a .env file with the following variables:
VITE_API_URL=https://your-backend-api.onrender.com/api
npm run dev
In backend/.env
:
MONGO_URI=your_mongo_connection_string
JWT_SECRET=your_jwt_secret
PORT=5000
In frontend/.env
:
VITE_API_URL=https://your-backend-api.onrender.com/api