Tirai.id is an e-commerce website specializing in curtain sales, built with Next.js. The platform offers a comprehensive solution for browsing, customizing, and purchasing curtains online.
- Frontend Framework: Next.js 15
- Authentication: NextAuth.js
- Database Management: Prisma ORM
- UI Components: shadcn/ui, Radix UI
- Styling: Tailwind CSS
- Form Handling: React Hook Form with Zod validation
- Data Visualization: Recharts
- Cloud Services: Supabase, Cloudinary
tirai.id/
├── src/
│ ├── app/
│ │ ├── (use-navbar)/
│ │ │ ├── (landing-page)/
│ │ │ ├── about/
│ │ │ ├── account/
│ │ │ ├── article/
│ │ │ ├── cart/
│ │ │ ├── components/
│ │ │ └── shop/
│ │ ├── admin/
│ │ │ ├── article/
│ │ │ ├── chat/
│ │ │ ├── custom-products/
│ │ │ ├── material/
│ │ │ ├── model/
│ │ │ ├── order/
│ │ │ ├── seo/
│ │ │ ├── shop/
│ │ │ └── user/
│ │ ├── auth/
│ │ │ ├── login/
│ │ │ ├── register/
│ │ │ ├── confirm-email/
│ │ │ └── reset-password/
│ │ └── api/
│ ├── components/
│ └── styles/
└── public/
- Clone the Repository
git clone https://github.com/mokletdev/tirai.id.git- Install Dependencies
npm install- Environment Setup
- Create
.env.localfile for development - Create
.envfile for production - Configure necessary environment variables
- Database Setup
# Development
npm run prisma:push # Push schema changes
npm run prisma:seed # Seed initial data
# Production
npm run prisma:push:prod
npm run prisma:seed:prod- Run Development Server
npm run devThe application will be available at http://localhost:3000.
npm run dev: Start development servernpm run build: Build the applicationnpm run start: Start production servernpm run lint: Run ESLint
npm run prisma:pull: Pull database schemanpm run prisma:push: Push schema changesnpm run prisma:migratedev: Create and apply migrationsnpm run prisma:seed: Run database seedingnpm run prisma:seed:transaction: Run transaction seeder
npm run prisma:pull:prod: Pull production database schemanpm run prisma:push:prod: Push schema changes to productionnpm run prisma:migratedev:prod: Create and apply production migrationsnpm run prisma:seed:prod: Run seeding in production
/auth/login- Login Form/auth/register- Registration Form/auth/confirm-email- Email verification warning after registration/auth/confirm-email/verify?token={token}- Email verification for non-Google authentication/auth/reset-password- Password reset email input/auth/reset-password/reset?token={token}- New password input with token validation
- Next.js Documentation - Learn about Next.js features and API
- shadcn/ui Documentation - Learn about shadcn/ui components
- mokletdev (GitHub Profile Data)
- Created: November 4, 2024
- License: Private