Skip to content

TechAmigo2k25/create-server-startup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.example file
    • README.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-startup

Then simply run:

create-server-startup

and follow the interactive prompts!


🛠️ Setup Locally (Development/Contributing)

  1. Fork the repo on GitHub: https://github.com/TechAmigo2k25/create-server-startup

  2. Clone your fork:

    git clone https://github.com/<your‑username>/create-server-startup.git
    cd create-server-startup
  3. Install dependencies:

    npm install
  4. Link 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 Authentication

Generated 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

  1. Install dependencies

    cd my-server
    npm install
  2. Configure environment

    cp .env.example .env
    # then update .env with your DATABASE_URL, JWT_SECRET, etc.
  3. Start the server

    • TypeScript:

      npm run dev
    • JavaScript:

      npm start
  4. 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:

  1. Fork the repo

  2. Create a feature branch:

    git checkout -b feature/awesome-feature
  3. Commit your changes:

    git commit -m "Add awesome feature"
  4. Push and open a PR


📄 License

MIT © [TechAmigo]


About

create-server-startup automatically create the folder structure of Node.js backend with the startup code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5