A comprehensive web application for managing entrance fees and activities at the Kubwa Eid Funfair celebration.
- User Authentication: Secure registration and login with password hashing
- Event Management: Browse and book various activities
- Payment Processing: Integrated with Paystack for secure payments
- QR Code Generation: Automatic QR code generation for each booking
- User Dashboard: View profile, bookings, and payment history
- Admin Dashboard: Manage users, transactions, and view analytics
- Responsive Design: Mobile-first design with dark green theme
- Database: PostgreSQL with Prisma ORM
- Frontend: Next.js 14, React 18, TypeScript
- Backend: Next.js API Routes
- Database: PostgreSQL
- ORM: Prisma
- Authentication: JWT with httpOnly cookies
- Payment: Paystack API
- QR Code: qrcode.react & qrcode
- Node.js v18 or higher
- PostgreSQL v14 or higher
- npm or yarn
# Clone the repository
git clone <repo-url>
cd eid-funfair-webapp
# Install dependencies
npm install
# Setup environment variables
cp .env.local.example .env.local
# Edit .env.local with your configuration
# Setup database
npx prisma migrate dev --name init
# Seed database with initial data
npm run db:seed