Skip to content

alexOS-dev/caggy-shop

Repository files navigation

Caggy | Shop

Getting Started

  1. Install node modules
npm install

with pnpm

pnpm i
  1. Create an .env file and set the next variables:
  • DB_USER="USERNAME" (default: postgres)
  • DB_NAME="YOUR_DB_NAME"
  • DB_PASSWORD="YOUR_DB_PASSWORD"

NOTE: You can copy and rename the template .env.template -> .env

  1. Setup prisma DATABASE_URL in your .env file: DATABASE_URL="postgresql://user:password@localhost:5432/db-name?schema=public"

  2. Run the Docker compose command to create the postgres database

docker compose up -d
  1. Run prisma dev migration
npx prisma migrate dev
  1. Run seed script (this will add some products to the DB)
npm run seed
  1. Run the development server:
npm run dev

Open http://localhost:3000 with your browser to see the result.

Main tech Stack

Next JS React

UI

Shadcn TailwindCSS Radix UI Badge

Backend

Prisma Docker Postgres NodeJS

Cloud

Cloudinary Badge Vercel Badge

Utilities

React Hook Form Badge Zod Badge

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages