Skip to content

Victorola-coder/hegegh

Repository files navigation

University of Wisdom and Understanding

A modern certificate generator web application that creates humorous "university" certificates for the Nigerian social trend championed by GehGeh. This project blends humor, street culture, and practical life lessons into an engaging certificate generation platform.

🎯 Overview

The University of Wisdom and Understanding is a fast-rising social trend in Nigeria that blends humor, street culture, and practical life lessons. Championed by GehGeh, a content creator and financial coach, it's not a traditional institution but a movement and online "school" where thousands of young people enroll virtually to gain wisdom, knowledge, and understanding about money, relationships, and life.

✨ Features

Core Functionality

  • User Enrollment System - Name input and module selection
  • Certificate Generation - Personalized certificates with wisdom scores
  • Social Sharing - Share certificates on Twitter, Facebook, WhatsApp
  • Modern UI/UX - Beautiful, responsive design with animations
  • Database Integration - PostgreSQL with Prisma ORM

Wisdom Modules

  • Financial Wisdom 101
  • Relationship Understanding
  • Discipline & Patience Studies
  • Street Intelligence
  • Legacy & Leadership
  • Department of Sense
  • No Go Carry Last Engineering
  • Chop Life Economics
  • Wahala Management Sciences
  • And 15+ more modules...

Degree Levels

  • Doctorate (4.5+ GPA)
  • Master (3.5+ GPA)
  • Bachelor (2.5+ GPA)
  • Diploma (1.5+ GPA)
  • Certificate (<1.5 GPA)

πŸ› οΈ Tech Stack

Frontend

  • Next.js 15 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first CSS framework
  • Framer Motion - Smooth animations
  • Lucide React - Beautiful icons
  • Sonner - Toast notifications

Backend

  • Next.js API Routes - Serverless API endpoints
  • Prisma - Database ORM
  • PostgreSQL - Primary database
  • Zod - Schema validation

Development

  • Bun - Fast package manager
  • ESLint - Code linting
  • PostCSS - CSS processing

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ or Bun
  • PostgreSQL database
  • Environment variables configured

Installation

  1. Clone the repository

    git clone <repository-url> cd hegegh
  2. Install dependencies

    bun install
  3. Set up environment variables

    cp .env.example .env.local

    Add your database URLs:

    POSTGRES_PRISMA_URL="your-postgresql-url" POSTGRES_URL_NON_POOLING="your-postgresql-direct-url"
  4. Set up the database

    bunx prisma generate bunx prisma migrate dev
  5. Run the development server

    bun dev
  6. Open your browser Navigate to http://localhost:3000

πŸ“ Project Structure

hegegh/ β”œβ”€β”€ app/ β”‚ β”œβ”€β”€ api/ β”‚ β”‚ └── students/ β”‚ β”‚ β”œβ”€β”€ route.ts # Main students API β”‚ β”‚ └── [id]/route.ts # Individual student API β”‚ β”œβ”€β”€ enroll/ β”‚ β”‚ └── page.tsx # Enrollment form β”‚ β”œβ”€β”€ student/ β”‚ β”‚ └── [id]/page.tsx # Certificate display β”‚ β”œβ”€β”€ globals.css # Global styles β”‚ β”œβ”€β”€ layout.tsx # Root layout β”‚ └── page.tsx # Homepage β”œβ”€β”€ prisma/ β”‚ └── schema.prisma # Database schema β”œβ”€β”€ public/ # Static assets β”œβ”€β”€ tailwind.config.ts # Tailwind configuration └── package.json # Dependencies 

🎨 Design System

Colors

  • Primary: Purple (#8B5CF6) - Wisdom and knowledge
  • Secondary: Amber (#F59E0B) - Achievement and success
  • Accent: Green (#10B981) - Growth and prosperity
  • Dark: Gray scale for text and backgrounds

Typography

  • Plus Jakarta Sans - Primary font for body text and headers
  • Inter - Secondary font for UI elements

Animations

  • Framer Motion - Page transitions and micro-interactions
  • Custom CSS - Gradient animations and hover effects

πŸ”§ API Endpoints

Students

  • GET /api/students - Fetch recent graduates and count
  • POST /api/students - Create new student enrollment
  • GET /api/students/[id] - Fetch individual student
  • PUT /api/students/[id] - Update student data
  • DELETE /api/students/[id] - Delete student

πŸ—„οΈ Database Schema

Student Model

model Student {  id String @id @default(cuid())  tag String @unique  name String  department String  gpa Float @default(0)  certificate String?  degree String @default("Diploma")  createdAt DateTime @default(now())  updatedAt DateTime @updatedAt   @@map("students") }

πŸš€ Deployment

Vercel (Recommended)

  1. Connect your GitHub repository to Vercel
  2. Add environment variables in Vercel dashboard
  3. Deploy automatically on push to main branch

Environment Variables

POSTGRES_PRISMA_URL="your-production-postgresql-url" POSTGRES_URL_NON_POOLING="your-production-postgresql-direct-url"

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • GehGeh - For championing the wisdom movement
  • Next.js Team - For the amazing framework
  • Vercel - For seamless deployment
  • Prisma Team - For the excellent ORM

πŸ“ž Contact


"Wisdom is not just about knowledge, but about understanding how to apply it in life." - GehGeh

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published