create-server-startup
v2.0.0
Published
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.
Readme
create-server-startup
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.
🌟 Features
- 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
📦 Installation
▶️ From NPM (Global)
npm install -g create-server-startupThen simply run:
create-server-startupand follow the interactive prompts!
🛠️ Setup Locally (Development/Contributing)
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-startupInstall dependencies:
npm installLink it locally to test as a CLI:
npm link
Now you can run the CLI:
create-server-startup💡 Why use create-server-startup?
Setting 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.
🧪 Example Usage
? ➤ Project name: my-server
? ➤ JavaScript or TypeScript? TypeScript
? ➤ Database: PostgreSQL
? ➤ Security level: JWT AuthenticationGenerated Structure
my-server/
├── src/
│ ├── config/
│ ├── controllers/
│ ├── db/
│ ├── middlewares/
│ ├── routes/v1/
│ ├── services/
│ ├── utils/
│ └── app.ts
├── .env.example
├── .gitignore
├── package.json
├── tsconfig.json
└── server.ts🚀 Running the Generated Project
Install dependencies
cd my-server npm installConfigure environment
cp .env.example .env # then update .env with your DATABASE_URL, JWT_SECRET, etc.Start the server
TypeScript:
npm run devJavaScript:
npm start
Verify health endpoint
curl http://localhost:3000/api/v1/health
🐛 Issues & 💡 Features
Got a bug or idea? Please open an issue.
🤝 Contributing
We love contributions! To get started:
Fork the repo
Create a feature branch:
git checkout -b feature/awesome-featureCommit your changes:
git commit -m "Add awesome feature"Push and open a PR
📄 License
MIT © [TechAmigo]
