A beautiful, responsive wedding invitation website built with Next.js, React, and Supabase.
- 📱 Mobile-responsive design
- 🎨 Modern, elegant UI with Tailwind CSS
- 💍 Landing page with wedding
- 📝 RSVP form for guests
- 💾 Supabase backend for storing guest responses
- ⚡ Fast and optimized with Next.js App Router
- 🤖 AI-powered chat with Tavily search integration
- 📊 Built-in metrics dashboard for API monitoring
- 💰 Token usage tracking for cost management
- Node.js 18+ installed
- A Supabase account and project
- Clone the repository:
git clone https://github.com/GianclaudioCarella/wedding-web.git
cd wedding-web- Install dependencies:
npm install- Set up environment variables:
- Copy
.env.exampleto.env.local - Fill in your Supabase credentials:
- Copy
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key- Set up the Supabase database table:
Run the scripts in the database folder in your Supabase SQL editor
- Run the development server:
npm run dev- Open http://localhost:3000 in your browser
5``bash npm run build npm start
## Deployment
This project can be easily deployed to Vercel:
[](https://vercel.com/new/clone?repository-url=https://github.com/GianclaudioCarella/wedding-web)
Don't forget to add your environment variables in the Vercel project settings!
## Technologies Used
- [Next.js 15](https://nextjs.org/) - React framework
- [React 19](https://react.dev/) - UI library
- [TypeScript](https://www.typescriptlang.org/) - Type safety
- [Tailwind CSS](https://tailwindcss.com/) - Styling
- [Supabase](https://supabase.com/) - Backend and database
- [Recharts](https://recharts.org/) - Chart library for metrics visualization
- [Tavily API](https://tavily.com/) - AI search integration
## Monitoring & Metrics 📊
This project includes a built-in metrics dashboard at `/admin/metrics`:
- **API Logs**: Track all API calls with response times
- **Token Usage**: Monitor LLM token consumption and costs
- **Tavily Metrics**: Cache hit rates and search performance
- **Cost Tracking**: Estimate and track API costs
- **Real-time Charts**: Live visualization with auto-refresh every 30s
Access at: [http://localhost:3000/admin/metrics](http://localhost:3000/admin/metrics)
## License
ISC