Skip to content

CLI tool to scaffold Node.js backends with Express, MongoDB, authentication, and TypeScript/JavaScript in seconds.

License

Notifications You must be signed in to change notification settings

TEE2DWHY/Backfire

Repository files navigation

🔥 backfire

Backend API Creation Kit - Fast Init & Ready Environment

npm version License: MIT

Fire up production-ready Node.js backends in seconds!

Stop wasting time on boilerplate. Generate a complete, production-ready backend with authentication, validation, and best practices built in.

✨ Features

  • 🔥 Instant Setup - Get a production-ready backend in under 60 seconds
  • 🔐 Authentication Ready - JWT auth, password hashing, protected routes
  • 📝 TypeScript Support - Full TypeScript or JavaScript support
  • 🎨 Feature Selection - Choose exactly what you need
  • 📚 API Documentation - Auto-generated Swagger/OpenAPI docs
  • 🧪 Testing Ready - Jest configuration included (optional)
  • 🐳 Docker Support - Dockerfile and docker-compose included (optional)
  • 📧 Email Integration - Nodemailer or SendGrid support
  • 📊 Logging - Winston or Pino logger integration
  • 🛡️ Security - Helmet, rate limiting, input validation, XSS protection
  • 🎯 Best Practices - Clean architecture, error handling, async patterns

🚀 Quick Start

No installation required!

npx @cwt-build/backfire my-awesome-api

That's it! Follow the interactive prompts to configure your backend.

Next Steps

cd my-awesome-api
npm install
cp .env.example .env
# Edit .env with your MongoDB URI
npm run dev

Your API is now running on http://localhost:5000 🎉

📦 Installation Options

Option 1: Use npx (Recommended)

# No installation needed
npx @cwt-build/backfire my-api

Option 2: Global Installation

# Install once
npm install -g @cwt-build/backfire

# Use anytime
backfire my-api

💡 Why backfire?

Backend API Creation Kit - Fast Init & Ready Environment

  • 🔥 Fast - Generate backends in seconds
  • 🔥 Production-Ready - Best practices built in
  • 🔥 Flexible - Choose only what you need
  • 🔥 Modern - Latest Node.js patterns
  • 🔥 Secure - Security by default

📝 API Endpoints

POST   /api/v1/auth/register      Register new user
POST   /api/v1/auth/login         Login user
POST   /api/v1/auth/logout        Logout user
GET    /api/v1/auth/me            Get current user
PUT    /api/v1/auth/update-password   Update password
GET    /api/v1/users              Get all users (Admin)
GET    /api/v1/users/:id          Get user by ID (Admin)
GET    /health                    Server health status

🛠️ Tech Stack

  • Node.js & Express.js
  • MongoDB & Mongoose
  • JWT Authentication
  • bcryptjs password hashing
  • TypeScript (optional)
  • Winston/Pino logging (optional)
  • Swagger documentation (optional)
  • Docker support (optional)

🤝 Contributing

Contributions welcome! See CONTRIBUTING.md

📄 License

MIT © CWT


🔥 Fire up your backend development today!

npx @cwt-build/backfire my-api

Created with ❤️ by CWT

About

CLI tool to scaffold Node.js backends with Express, MongoDB, authentication, and TypeScript/JavaScript in seconds.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published