A powerful CLI tool by TechAmigo to scaffold production‑ready Node.js backend projects in seconds — with support for JavaScript or TypeScript, popular databases, and JWT‑based security options.
- Choose between JavaScript or TypeScript
- Select popular databases (MongoDB, PostgreSQL, MySQL, SQLite)
- Optionally enable security (Helmet, CORS, Rate Limiting, JWT Auth)
- Auto‑generates:
- Project folder structure
.env.examplefileREADME.md,.gitignore,package.json- Health‑check endpoint
- Logger & error middleware
- Pre‑configured with
nodemon,winston,dotenv, and more
npm install -g create-server-startupThen simply run:
create-server-startupand follow the interactive prompts!
-
Fork the repo on GitHub: https://github.com/TechAmigo2k25/create-server-startup
-
Clone your fork:
git clone https://github.com/<your‑username>/create-server-startup.git cd create-server-startup
-
Install dependencies:
npm install
-
Link it locally to test as a CLI:
npm link
Now you can run the CLI:
create-server-startupSetting up a new backend often means repeating boilerplate:
- Folder structure
- Health checks, loggers, error handlers
- Env & Git configuration
- Security middleware & DB connections
create-server-startup automates all of that, so you can dive straight into building features.
? ➤ Project name: my-server
? ➤ JavaScript or TypeScript? TypeScript
? ➤ Database: PostgreSQL
? ➤ Security level: JWT Authenticationmy-server/
├── src/
│ ├── config/
│ ├── controllers/
│ ├── db/
│ ├── middlewares/
│ ├── routes/v1/
│ ├── services/
│ ├── utils/
│ └── app.ts
├── .env.example
├── .gitignore
├── package.json
├── tsconfig.json
└── server.ts
-
Install dependencies
cd my-server npm install -
Configure environment
cp .env.example .env # then update .env with your DATABASE_URL, JWT_SECRET, etc. -
Start the server
-
TypeScript:
npm run dev
-
JavaScript:
npm start
-
-
Verify health endpoint
curl http://localhost:3000/api/v1/health
Got a bug or idea? Please open an issue.
We love contributions! To get started:
-
Fork the repo
-
Create a feature branch:
git checkout -b feature/awesome-feature
-
Commit your changes:
git commit -m "Add awesome feature" -
Push and open a PR
MIT © [TechAmigo]