Skip to content

Eternal-Creativity-Open-Source/ultimatehealth-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

516 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

UltimateHealth Backend

Node.js Express.js MongoDB Swagger


Live Web Demo Android App API Docs Content API

🧾 License 🌟 Stars 🍴 Forks πŸ› Issues
License Stars Forks Issues
πŸ”„ Open PRs βœ… Closed PRs ⏱️ Last Commit
Open PRs Closed PRs Last Commit

The core backend engine powering UltimateHealth β€” a community-driven open-source health platform.

Provides secure, scalable REST APIs for:

  • Multilingual health articles & podcasts
  • Collaborative content review & moderation
  • User authentication (JWT)
  • Admin & user analytics
  • Reporting & safety features

Submodule Repositories


✨ Key Features

  • Full CRUD for Articles & Podcasts with review workflow
  • JWT Authentication + Protected Routes
  • Content Moderation System (strikes, bans, flagging)
  • Admin Dashboard APIs + Analytics
  • Swagger UI for interactive API documentation
  • Environment-based configuration
  • Error handling & validation

Live API Docs: https://uhsocial.in/docs


πŸ› οΈ Tech Stack

  • Runtime: Node.js
  • Framework: Express.js
  • Database: MongoDB + Mongoose
  • Auth: JWT
  • Docs: Swagger (OpenAPI 3)
  • Others: dotenv, cors, etc.

πŸš€ Quick Start

  1. Clone the repo
    git clone https://github.com/SB2318/ultimatehealth-backend.git
    cd ultimatehealth-backend
    
  2. Install dependencies
   yarn install
   replace your .env
  1. Create .env file (see .env.example)
PORT=YOUR_PORT_HERE

MONGODB_URL= YOUR_DATABASE_URL_HERE
BASE_URL = SERVER_BASE_URL_HERE

# JWT Secrets - Use different secrets for different token types for enhanced security
JWT_ACCESS_SECRET= YOUR_ACCESS_TOKEN_SECRET_KEY
JWT_REFRESH_SECRET= YOUR_REFRESH_TOKEN_SECRET_KEY
JWT_VERIFICATION_SECRET= YOUR_VERIFICATION_TOKEN_SECRET_KEY

# JWT Expiration Times (configurable)
JWT_ACCESS_EXPIRY=15m
JWT_REFRESH_EXPIRY=7d
JWT_VERIFICATION_EXPIRY=1h

# Legacy JWT Secret (deprecated - migrate to separate secrets)
JWT_SECRET= JWT_SECRET_KEY

EMAIL= EMAIL_ID
PASSWORD= MAIL_PASSWORD
SMTP_HOST= YOUR_MAIL_HOST
EMAIL_USER= YOUR_MAIL_ID
EMAIL_PASS= YOUR_MAIL_PASSWORD
VULTR_ACCESS_KEY = 'YOUR_ACCESS_KEY';
VULTR_SECRET_KEY = 'YOUR_SECRET_KEY';
BUCKET_NAME = 'YOUR_BUCKET_NAME';
ENDPOINT_URL = 'YOUR_ENDPOINT_URL';
  1. Run The Server
  yarn start

πŸ“Project Structure

ultimatehealth-backend/
β”œβ”€β”€ src/
β”œβ”€β”€ config/          # Database & environment config
β”œβ”€β”€ controllers/     # Request handlers
β”œβ”€β”€ middleware/      # Auth, validation, error handling
β”œβ”€β”€ models/          # Mongoose schemas
β”œβ”€β”€ routes/          # API route definitions
β”œβ”€β”€ utils/           # Helper functions
β”œβ”€β”€ services/      
β”œβ”€β”€ index.js
β”œβ”€β”€ .env.example
β”œβ”€β”€ package.json
└── README.md

🀝 How to Contribute

We welcome contributions! This backend is open for students, developers, and open-source enthusiasts.

Getting Started

  • Read our CONTRIBUTING.md for detailed guidelines.
  • Look for issues labeled with good-first-issue β€” perfect for beginners.

Popular Contribution Areas

  • Adding new API endpoints
  • Improving error handling & validation
  • Writing unit/integration tests
  • Enhancing Swagger documentation
  • Performance optimizations
  • Fixing bugs and improving code quality
  • Adding more test coverage

Thank you for contributing to our repository

We appreciate your help in making UltimateHealth even better.πŸ˜ƒ


Susmita Bhattacharya

HRUSHIKESH SHINDE

SrijanCodes

If you're new to open source, feel free to ask questions by opening a Discussion or commenting on an issue.

About

The repository is is the core engine powering the UltimateHealth platform. This backend service provides secure, and efficient APIs to support a seamless experience for users accessing trustable health resources and expert insights. βœ…πŸ’‘

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors