This project is built using Next.js, Xata (database), Clerk (authentication), Midtrans (payment gateway), and optionally Resend (for email sending).
git clone <your-repo-url>
cd <your-project-folder>
npm install
npm run build
npm run start
Before running the app, make sure to configure the following environment variables in a .env.local
file:
# Xata
XATA_API_KEY=your_xata_api_key
XATA_BRANCH=main
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
# Midtrans
MIDTRANS_SERVER_KEY=your_midtrans_server_key
MIDTRANS_CLIENT_KEY=your_midtrans_client_key
# Resend (optional, if you use email sending)
RESEND_API_KEY=your_resend_api_key
- Next.js – React framework for building web apps
- Xata – Serverless database
- Clerk – Authentication and user management
- Midtrans – Payment gateway
- Resend – Email API (optional)
For local development, you can run:
npm run dev
This will start the project in development mode.
This project is licensed under the MIT License – feel free to use and modify it as you like.