E-Warung Admin is a System management for E-warung webapp that provide Dashboard & API. Build with Typescript, Next, Tailwind, Shadcn, Prisma, & Planetscale (mySQL)
-
Repo URL: Github
-
Live Site URL: Live on Vercel
- Typescript - JS but cooler
- Next JS - JS Framework
- Tailwind - Styles
- Prisma - ORM
- Planetscale - Database
- Clerk - Auth
- Cloudinary - Media storage
- Website - gustifaizal.com
- Twitter - @gfsxyz
$ git clone https://github.com/gfsxyz/warung-admin.git
- Setup Clerk & Planetscale, Stripe, and Cloudinary accounts.
Create .env file and insert:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=<PROVIDED_BY_CLERK>
CLERK_SECRET_KEY=<PROVIDED_BY_CLERK>
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
DATABASE_URL=<PROVIDED_BY_PLANETSCALE>
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=<PROVIDED_BY_CLOUDINARY>
STRIPE_API_KEY=<PROVIDED_BY_STRIPE>
STRIPE_WEBHOOK_SECRET=<PROVIDED_BY_STRIPE>
FRONTEND_STORE_URL=YOUR_FRONT_END_URL OR http://localhost:3001
$ npm install
$ npx prisma generate
&
$ npx prisma push
$ npm run dev