尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A minimal, working template for quickly spinning up professional directories for different niches.
# Install dependencies
npm install
# Run development server
npm run dev
Visit http://localhost:3000
📘 Read CLAUDE.md first! This file contains comprehensive project documentation including:
File path: ./CLAUDE.md or /home/user/GAPP-Directory/CLAUDE.md
✅ Working Out of the Box - No broken dependencies or missing files ✅ Generic & Reusable - Zero hardcoded references to any specific niche ✅ Essential Components - Just the parts that save time ✅ Simple Configuration - One config file to customize everything
directory-starter-template/
├── app/ # Next.js app directory
│ ├── page.tsx # Landing page
│ ├── directory/ # Browse directory
│ │ ├── page.tsx # Member listings
│ │ └── join/ # Join form
│ └── admin/ # Simple admin dashboard
├── components/
│ └── MemberCard.tsx # Reusable member card
├── lib/
│ ├── config.ts # Main configuration
│ └── utils.ts # Utilities
├── types/
│ └── member.ts # Generic member type
└── configs/ # Example configurations
└── fire-safety.ts # Fire safety example
lib/config.tsexport const config = {
// Change these for your niche
siteName: 'Your Directory Name',
tagline: 'Your tagline here',
memberSingular: 'professional', // e.g., 'inspector', 'attorney', 'consultant'
memberPlural: 'professionals', // e.g., 'inspectors', 'attorneys', 'consultants'
// Customize tier names and prices
tiers: [
{ level: 0, name: 'Free', price: 0, color: 'gray' },
{ level: 1, name: 'Basic', price: 99, color: 'blue' },
// ...
],
}
Edit the mock data in app/directory/page.tsx to match your niche.
members, claims, reviewsThis is intentionally minimal. Not included:
Add these as needed for each project.
See configs/ folder for examples:
fire-safety.ts - Fire & Life Safety Directorylib/config.tsEdit types/member.ts:
export interface Member {
// ... existing fields
// Add your custom fields
licenseNumber?: string;
insuranceExpiry?: string;
serviceArea?: string[];
}
Edit tailwind.config.ts:
colors: {
primary: {
DEFAULT: '#your-color',
dark: '#your-dark-color',
light: '#your-light-color',
},
}
Edit your config:
badges: [
{ id: 'verified', label: 'Verified', color: 'green' },
{ id: 'premium', label: 'Premium', color: 'gold' },
// Add more...
]
-- Basic schema for Supabase
CREATE TABLE members (
id UUID PRIMARY KEY,
name TEXT NOT NULL,
slug TEXT UNIQUE NOT NULL,
email TEXT,
tier_level INTEGER DEFAULT 0,
is_active BOOLEAN DEFAULT true,
is_verified BOOLEAN DEFAULT false,
created_at TIMESTAMP DEFAULT NOW()
);
CREATE TABLE claims (
id UUID PRIMARY KEY,
member_id UUID REFERENCES members(id),
status TEXT DEFAULT 'pending',
created_at TIMESTAMP DEFAULT NOW()
);
Use freely for internal projects. This is a tool, not a product.