TheNaubit /
Minimal-Express-Zod-Api-Boilerplate
📝 A minimal Express Zod API boilerplate, ready to clone and build!
Loading repository data…
mateussantoos / repository
A minimal, batteries‑included starter to build and ship Sankhya ERP HTML5 components using React 19 and Vite 7 — with JSP scaffold, stable asset filenames, alias support, Tailwind (optional), and a ZIP bundle ready for import in Sankhya.
assets/app.js, assets/index.css)@ → src for clean imports (Vite + TS configured)base: "./") to support ${BASE_FOLDER} paths@tailwindcss/vitedist/sankhya-component.zip) using vite-plugin-zip-packpnpm install
pnpm dev
Open http://localhost:5173.
Main entry points:
src/main.tsx — mounts the appsrc/app/app.tsx — demo UIindex.html — html demo viewpnpm build
This produces:
dist/index.jsp — page to be served by Sankhyadist/assets/app.js — bundled JS (ESM)dist/assets/index.css — stylesdist/assets/*.svg — logos and images (not inlined)dist/sankhya-component.zip — ready to import in SankhyaCopy the entire dist/ (or only the ZIP) to your HTML5 component folder in Sankhya.
src/
app/app.tsx # Demo component
assets/* # Logos and images
global.css # Global styles (Tailwind ready)
main.tsx # App entry
services/sankhya/ # Sankhya service layer (API, Database, Page utils)
public/
index.jsp # JSP scaffold used in Sankhya
vite.config.ts # Build config (stable outputs, base "./", zip pack)
pnpm dev — start Vite dev serverpnpm build — typecheck + production build + ZIPpnpm preview — preview production buildpublic/index.jsp calls <snk:load/>, which injects Sankhya's native runtime
(window.executeQuery, openApp, openLevel, refreshDetails, openPage).
The service layer prefers these native helpers and only falls back to direct
service.sbr calls when they are absent (e.g. localhost dev).base: "./") so ${BASE_FOLDER} works in JSP.assetsInlineLimit: 0) so they exist as physical files in dist/assets.<script type="module">, add @vitejs/plugin-legacy and load the legacy bundle in index.jsp.Logos aren’t loading inside Sankhya
dist/ (not the dev server URLs).${BASE_FOLDER}/assets/* correctly.How do I change the output names?
vite.config.ts → build.rollupOptions.output.PRs are welcome! Please lint and keep changes focused.
MIT © 2025
Built with ☕ by M.S.
Selected from shared topics, language and repository description—not editorial ratings.
TheNaubit /
📝 A minimal Express Zod API boilerplate, ready to clone and build!
Narasimha1997 /
A minimal boilerplate for building frontends using Preact, TypeScript and Web Assembly.
pamelasantoss /
A minimal starter boilerplate for building TypeScript applications with Vite and Tailwind CSS.
pamelasantoss /
A minimal starter boilerplate for building TypeScript applications with Next.js and Tailwind CSS.
Lucas-Brites1 /
TSStarter is a minimal boilerplate designed to kickstart your TypeScript projects.
Sarwarhridoy4 /
A clean and minimal boilerplate for building scalable Express.js servers with TypeScript, Prisma ORM, and PostgreSQL following the Modular MVC pattern.