Skip to content

Tumusiimed/khi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KHI-PHARMA System

KHINVENT PHARMA SOLUTIONS
Requested by CEO: Mr. Mandella Chrispus


Project Structure

khi-pharma/
├── frontend/
│   ├── index.html       ← Complete website (all pages)
│   ├── styles.css       ← All styling
│   └── app.js           ← Navigation & form logic
│
└── backend/
    ├── server.js        ← Node.js/Express REST API
    ├── package.json     ← Dependencies
    └── API_DOCS.md      ← Full API documentation

Frontend Pages

  • Home — Hero, features, category explainer, CTA
  • About — Mission, problem, solution, stakeholders
  • How It Works — 6-step process + algorithm formulas
  • Pricing — Free trial + 3 plans × 2 tiers
  • Contact — Contact details + message form
  • Login / Sign Up — Full authentication forms

Backend Endpoints

  • POST /api/auth/register — Create account + start 7-day trial
  • POST /api/auth/login — Sign in
  • GET /api/auth/me — Get current user
  • POST /api/analysis/calculate — Run KHI-PHARMA algorithm
  • POST /api/analysis/predictive — Predictive analytics (Premier)
  • GET /api/reports — List reports
  • GET /api/reports/:reportNo — Get specific report
  • GET /api/plans — List plans
  • POST /api/plans/upgrade — Upgrade plan

Running the Backend

cd backend
npm install
npm start          # production
npm run dev        # development (nodemon)

API runs on http://localhost:3001


Running the Frontend

Open frontend/index.html in a browser — no build step required.

For production, serve with any static file server:

npx serve frontend/

Next Steps for Production

  1. Replace in-memory users[] and reports[] arrays with a database (PostgreSQL or MongoDB)
  2. Set JWT_SECRET as a secure environment variable
  3. Integrate a payment gateway (Stripe/PayPal) for subscription billing
  4. Add email service (SendGrid) for report sharing and password reset
  5. Deploy frontend to Netlify/Vercel, backend to Railway/Render/AWS

KHINVENT PHARMA SOLUTIONS — Bwebajja, Entebbe, Uganda
khinventpharma@gmail.com | +256 705 183722

About

khi pharma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors