- Node/Express/TypeScript API under /api/v1 with JWT auth (login, refresh, logout, /me) - Prisma schema: vendors, users, roles, products, categories, taxes, transactions - SQLite for local dev; Postgres via docker-compose for production - Full CRUD routes for vendors, users, categories, taxes, products with Zod validation and RBAC - Paginated list endpoints scoped per vendor; refresh token rotation - React/TypeScript admin SPA (Vite): login, protected routing, sidebar layout - Pages: Dashboard, Catalog (tabbed Products/Categories/Taxes), Users, Vendor Settings - Shared UI: Table, Modal, FormField, Btn, PageHeader components - Multi-stage Dockerfile; docker-compose with Postgres healthcheck - Seed script with demo vendor and owner account - INSTRUCTIONS.md, ROADMAP.md, .claude/launch.json for dev server config Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
66 lines
2.0 KiB
JavaScript
66 lines
2.0 KiB
JavaScript
"use strict";
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __export = (target, all) => {
|
|
for (var name in all)
|
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
};
|
|
var __copyProps = (to, from, except, desc) => {
|
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
for (let key of __getOwnPropNames(from))
|
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
}
|
|
return to;
|
|
};
|
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
|
|
// src/scripts/default-index.ts
|
|
var default_index_exports = {};
|
|
__export(default_index_exports, {
|
|
Prisma: () => Prisma,
|
|
PrismaClient: () => PrismaClient,
|
|
default: () => default_index_default
|
|
});
|
|
module.exports = __toCommonJS(default_index_exports);
|
|
|
|
// ../../node_modules/.pnpm/@prisma+engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2/node_modules/@prisma/engines-version/package.json
|
|
var prisma = {
|
|
enginesVersion: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
|
};
|
|
|
|
// package.json
|
|
var version = "5.22.0";
|
|
|
|
// src/runtime/utils/clientVersion.ts
|
|
var clientVersion = version;
|
|
|
|
// src/scripts/default-index.ts
|
|
var PrismaClient = class {
|
|
constructor() {
|
|
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
|
|
}
|
|
};
|
|
function defineExtension(ext) {
|
|
if (typeof ext === "function") {
|
|
return ext;
|
|
}
|
|
return (client) => client.$extends(ext);
|
|
}
|
|
function getExtensionContext(that) {
|
|
return that;
|
|
}
|
|
var Prisma = {
|
|
defineExtension,
|
|
getExtensionContext,
|
|
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
|
|
};
|
|
var default_index_default = { Prisma };
|
|
// Annotate the CommonJS export names for ESM import in node:
|
|
0 && (module.exports = {
|
|
Prisma,
|
|
PrismaClient
|
|
});
|