A modern, secure, and high-performance marketplace for IPB students. Built with Next.js, Cloudflare D1, and R2.
Ikuti langkah-langkah berikut untuk menjalankan project ini di komputer lokal Anda:
git clone <repository-url>
cd IPB-Pre-Loved
npm install
Buat file .dev.vars dari template yang tersedia:
cp .dev.vars.example .dev.vars
Buka file .dev.vars dan isi variabel berikut:
AUTH_SECRET: Generate pake npx auth secret.AUTH_GOOGLE_ID & AUTH_GOOGLE_SECRET: Ambil dari Google Cloud Console.ADMIN_EMAILS: Daftar email admin (dipisahkan koma).Inisialisasi database SQLite lokal Anda:
# Jalankan migrasi ke database D1 lokal
npx wrangler d1 migrations apply DB --local
# Menggunakan wrangler dev (Direkomendasikan untuk testing R2/D1)
npx wrangler dev
# ATAU menggunakan standard next dev
npm run dev
Akses di: http://localhost:3000
Silahkan cek folder docs/ untuk detail lebih mendalam:
@apps.ipb.ac.id yang diizinkan masuk.