Skip to content

Latest commit

 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open 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.

Admin Panel 🔐

A secure dashboard for managing barter application submissions and tracking the pipeline.

Quick Setup

  1. Install dependencies: npm install jose
  2. Set environment variables in .env.local:
    ADMIN_PASSWORD=your_secure_password
    ADMIN_JWT_SECRET=your_random_32_char_secret
  3. Access at /admin (redirects to /admin/login if not authenticated)

See ADMIN_SETUP.md for detailed setup instructions and docs/admin-panel.md for full documentation.

Features

  • 📊 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

Application submissions (email + Slack)

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 email
  • FROM_EMAIL: optional (defaults to notifications@barter.dev)
  • NOTIFICATION_EMAIL: optional (defaults to hello@barter.dev)
  • SLACK_WEBHOOK_URL: optional — when set, new applications are posted to Slack
  • NEXT_PUBLIC_SITE_URL: optional (used in the Slack message; defaults to https://barter-dev.com)
  • MONGODB_URI: required for database connection
  • ADMIN_PASSWORD: required for admin panel access
  • ADMIN_JWT_SECRET: required for admin authentication

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages