mirror of
https://github.com/123perfect321/Auto-Card.git
synced 2026-11-23 11:18:36 +08:00
Three-package SaaS auto card/key delivery platform: - backend: Express + TypeScript + Prisma + SQLite - JWT auth, bcrypt, AES-256-CBC card encryption - multer image upload for product covers - nodemailer for card delivery - zod request validation, helmet, rate-limit - frontend (buyer): Vue 3 + Vite + Pinia - Product browsing, checkout, payment via token URLs - Optional extraction password, email-based order query - admin: Vue 3 + Element Plus + ECharts (dark theme) - Real dashboard analytics from DB - Product/category/order/card management - Per-spec card import and clear - Cover image upload in product editor Also includes docker-compose.yml, PROJECT_SPEC.md, and README with setup instructions.
12 lines
233 B
Docker
12 lines
233 B
Docker
FROM node:20-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|