Switch language한국어
Back to the list

I built a CLI tool to stop copy-pasting my backend boilerplate

TL;DR AI

Key summary

2 min read
  1. Templr-js is a CLI for saving and reapplying Node.js backend boilerplate to avoid repeated copy-pasting.

  2. It captures common startup steps like creating src/db/db.js and src/app.js, wiring express/cors/dotenv, and copying asyncHandler, ApiError, and ApiResponse utilities.

  3. Install globally with npm install -g templr-js; example commands: templr save mybackend and templr use mybackend.

  4. Setups are stored locally (no cloud or config files) and node_modules and .git are never copied.

  5. Built in a day with pure Node.js (fs, path, os), templr-js has no dependencies; package: npmjs.com/package/templr-js; repo: https://github.com/Ammarfrfr/templr-js.

Read the original