DEV Community

Ammar Shaikh
Ammar Shaikh

Posted on

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

Every time I started a new Node.js project I was doing the same thing:

  • create src/db/db.js
  • create src/app.js
  • set up express, cors, dotenv
  • copy asyncHandler, ApiError, ApiResponse utils

So I built templr-js.

npm install -g templr-js

save your perfect setup once

templr save mybackend

use it forever

templr use mybackend

No cloud. No config files. Stored locally on your machine.
node_modules and .git are never copied.

Built it in a day with pure Node.js โ€” fs, path, os. No dependencies.

npm: npmjs.com/package/templr-js
github: https://github.com/Ammarfrfr/templr-js

Top comments (0)