A simple admin panel for managing hackathon applications.
- Basic authentication (username/password)
- List all applicants with search functionality
- View detailed application information
- Update application status (Accept, Waitlist, Reject)
- Next.js 14 with App Router
- Tailwind CSS for styling
- PostgreSQL with Prisma ORM
- Server Actions/API Routes for data fetching
- Node.js 18+
- PostgreSQL database
- Clone the repository:
git clone <repository-url>
cd hackathon-admin
- Install dependencies:
pnpm install
- Set up environment variables by creating a
.env
file:
DATABASE_URL="postgresql://username:password@localhost:5432/hackathon?schema=public"
- Set up the database:
pnpm prisma db push
- Run the development server:
pnpm dev
To populate the database with sample data, you can use the seed API:
curl -X POST http://localhost:3000/api/seed
Or navigate to /api/seed
in your browser while the application is running.
- Access the application at
http://localhost:3000
- Log in with the credentials:
- Username:
admin
- Password:
admin123
- Username:
- Use the search functionality to find applicants
- Click on "Details" to view the full application
- Update application status using the action buttons
MIT