Skip to content

ajaynegi45/upchaar-aayog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Upchaar Aayog

Upchaar Aayog is a full-stack healthcare discovery platform focused on affordability and access. It helps users:

  • find govt. scheme hospitals
  • find Jan Aushadhi Kendras
  • search lower-cost generic medicine alternatives (under-development)

The repository contains a Next.js frontend and a Spring Boot backend.

Repository Structure

upchaar-aayog/
├── upchaaraayog-frontend/   # Next.js 16 + React 19 UI
└── upchaaraayog-backend/    # Spring Boot 4 + PostgreSQL

Features

  • Hospital discovery with state, district, hospital type, scheme, and speciality filters
  • Jan Aushadhi Kendra search by location
  • generic medicine search experience for cheaper alternatives

Tech Stack

Frontend

  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind CSS 4
  • Zustand

Backend

  • Spring Boot 4
  • Spring Data JPA
  • JdbcClient
  • PostgreSQL

Local Development

1. Start the backend

cd upchaaraayog-backend
./mvnw spring-boot:run

Backend default:

  • port: 8080
  • bind address: 0.0.0.0

2. Start the frontend

cd upchaaraayog-frontend
npm install
npm run dev

Frontend default:

  • port: 3000
  • bind address: 0.0.0.0

3. Open the app

Desktop:

Mobile on the same Wi-Fi:

  • http://<your-local-ip>:3000
  • example: http://192.168.1.5:3000

Environment

Frontend uses:

  • NEXT_PUBLIC_API_URL

Example:

NEXT_PUBLIC_API_URL=http://192.168.1.5:8080

If this variable is missing in the browser, the frontend falls back to the current hostname with backend port 8080.

Backend uses:

  • DATABASE_URL
  • DATABASE_USERNAME
  • DATABASE_PASSWORD

See upchaaraayog-backend/src/main/resources/application.yaml.

API Overview

Important endpoints:

  • GET /api/v1/hospitals/states
  • GET /api/v1/hospitals/districts?state=...
  • GET /api/v1/hospitals/schemes?state=...&district=...
  • GET /api/v1/hospitals/specialities?state=...&district=...
  • GET /api/v1/hospitals/types?state=...&district=...
  • GET /api/v1/jan-aushadhi-kendra
  • GET /api/v1/states
  • GET /api/v1/states/{stateName}/districts

Data and Purpose

This project is meant to improve discoverability of public-health and affordable-care information. Users should still verify final eligibility, hospital availability, and medicine details through official channels before making treatment decisions.

About

Platform designed to make healthcare more accessible and affordable. Users can easily search for generic medicine alternatives to expensive brands, locate nearby Jan Aushadhi Kendras for discounted medications, and find Ayushman Bharat hospitals offering free treatment up to ₹5 lakh. Empowering individuals to access affordable healthcare.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors