This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
A secure dashboard for managing barter application submissions and tracking the pipeline.
- Install dependencies:
npm install jose - Set environment variables in
.env.local:ADMIN_PASSWORD=your_secure_password ADMIN_JWT_SECRET=your_random_32_char_secret
- Access at
/admin(redirects to/admin/loginif not authenticated)
See ADMIN_SETUP.md for detailed setup instructions and docs/admin-panel.md for full documentation.
- 📊 Dashboard with real-time statistics
- 🔍 Filter and search applications
- ✏️ Update application status (Pending → Reviewing → Accepted/Rejected)
- 📝 Add internal notes to applications
- 🔐 Secure JWT-based authentication
The POST /api/apply endpoint stores applications in the DB and can send:
- Email notifications via Resend
- Slack notifications via an Incoming Webhook
Environment variables:
RESEND_API_KEY: required to send emailFROM_EMAIL: optional (defaults tonotifications@barter.dev)NOTIFICATION_EMAIL: optional (defaults tohello@barter.dev)SLACK_WEBHOOK_URL: optional — when set, new applications are posted to SlackNEXT_PUBLIC_SITE_URL: optional (used in the Slack message; defaults tohttps://barter-dev.com)MONGODB_URI: required for database connectionADMIN_PASSWORD: required for admin panel accessADMIN_JWT_SECRET: required for admin authentication
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.