Skip to content

yuler/store

Repository files navigation

store

A store

PNPM Badge

Struct

/
├── apps
│   │── docs    # Documents
│   │── api     # Backend API
│   │── cms     # CMS
│   └── mini    # WeChat Miniprogram
├── packages
│   └── shared  # Shared Utils
│── prisma      # Prisma Configs
└── shots       # Screen Shots

Tech Stacks

Develop Guide

  • pnpm install # Install dependencies
  • copy .env.example .env # Setup environment variable
  • pnpm run db:generate # Prisma Generate Artifacts
  • pnpm run db:deploy # Prisma Migrate deploy

apps/mini

  • pnpm run --filter mini ide open # Open the WeChat Devtool IDE
  • gh secret set MINI_PRIVATE_KEY < apps/mini/private.xxx.key # Upload key to GitHub Secret

apps/api

  • docker-compose up -d # Up DB service
  • gh secret set -f .env # Upload .env to GitHub Secret

Q/A

  • docker pull --platform linux/amd64 mysql # For M1 Mac

Refs