Skip to content

iAm-AliHaider/partyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PartyApp 🇵🇰

Political Party Membership PWA with Referral-Based Ranking System for Pakistan.

Setup

# 1. Install dependencies
npm install

# 2. Configure environment
cp .env.example .env
# Edit .env with your PostgreSQL connection string

# 3. Generate Prisma client & push schema
npx prisma generate
npx prisma db push

# 4. Seed constituencies data
npm run db:seed

# 5. Run development server
npm run dev

Open http://localhost:3000

Features

  • 📱 Mobile-first PWA (installable)
  • 🔗 3-level referral system (10/5/2 points)
  • 🏆 Per-constituency leaderboards
  • 🇵🇰 All 266 NA + sample PA constituencies
  • 👤 CNIC-based auto-constituency mapping
  • 🤖 AI Agent webhook endpoint
  • 🌙 Pakistan green theme

Tech Stack

Next.js 14 | TypeScript | Tailwind CSS | PostgreSQL | Prisma | NextAuth.js

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors