Skip to main content

Available Templates

Exon ships with ready-made templates under the templates/ 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/ts
  • prisma/js | prisma/ts
  • drizzle/js | drizzle/ts

The Generation Flow

During project creation, the Exon CLI automates the following steps:
  1. Copies Project Template: Scaffolds the base Express boilerplate.
  2. Copies DB Template: Places the selected DB config automatically into src/db.
  3. Merges Dependencies: Appends contents of deps.json into the root package.json.
  4. Appends Environment Variables: Attaches any data from env.append into the local .env.

Custom Templates

If you wish to add your own template or expand an existing one, simply add a folder under templates/ and follow the matching structure from the standard templates. Provide a deps.json and env.append if additional dependencies and variables are needed.