Available Templates
Exon ships with ready-made templates under thetemplates/ folder for both JavaScript and TypeScript projects, as well as separate Database (DB) templates.
Project Templates
node-express-template-js(JavaScript)node-express-template-ts(TypeScript)
Database Templates
Copied into
src/db (when selected):mongoose/js|mongoose/tsprisma/js|prisma/tsdrizzle/js|drizzle/ts
The Generation Flow
During project creation, the Exon CLI automates the following steps:- Copies Project Template: Scaffolds the base Express boilerplate.
- Copies DB Template: Places the selected DB config automatically into
src/db. - Merges Dependencies: Appends contents of
deps.jsoninto the rootpackage.json. - Appends Environment Variables: Attaches any data from
env.appendinto the local.env.
Custom Templates
If you wish to add your own template or expand an existing one, simply add a folder undertemplates/ and follow the matching structure from the standard templates. Provide a deps.json and env.append if additional dependencies and variables are needed.