Skip to content

SatyamGarg297/Wellness_Session_Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wellness Session Platform

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.

Features

  • 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

Tech Stack

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)

Folder Structure

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

Getting Started

Prerequisites

  • Node.js & npm
  • MongoDB Atlas account

Installation

  1. Clone the repository
git clone https://github.com/SatyamGarg297/Wellness_Session_Platform.git
cd wellness-session-platform
  1. 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
  1. 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

🔐 Environment Variables

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

Deployment

Releases

No releases published

Packages

No packages published