Skip to content

Latest commit

Β 

History

History
130 lines (93 loc) Β· 3.33 KB

File metadata and controls

130 lines (93 loc) Β· 3.33 KB

πŸš€ Automated Deploy CLI

Effortless ECS deployment for Node.js, Python (Django), Go, and Java (Spring Boot) projects β€” powered by 🧠 AI and πŸ”§ templates.


πŸ“¦ Installation

npm install -g automatic-deploy

or

npm i automatic-deploy

πŸ’» Usage

mydeploy <command> [options]

πŸ“œ Commands

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 🧾 Command β”‚ πŸ“ Description                                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ init       β”‚ πŸ” Detects project framework & generates Dockerfileβ”‚
β”‚ config     β”‚ βš™οΈ  Add your API keys and AWS credentials         β”‚
β”‚ deploy     β”‚ πŸš€ Deploys your app to AWS ECS                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”₯ Features

  • πŸ€– AI-powered Dockerfile generation using Google Gemini
  • 🧰 Fallback to production-ready Dockerfile templates
  • ☁️ One-command ECS + ECR provisioning & deployment
  • πŸͺ„ Smart CLI interaction using Inquirer, Chalk, and Figlet
  • πŸ” .env support for secrets and API keys

πŸ§ͺ Example Workflow

# 1. Analyze your project & generate Dockerfile
mydeploy init <project-path>

# 2. Set up AWS credentials and deploy config
mydeploy config <KEY> <Value>

# 3. Deploy your app to AWS ECS
mydeploy deploy <project-path>

πŸ—‚ Folder Structure

automated-deploy/
β”œβ”€β”€ bin/
β”‚   └── cli.js               # 🏁 CLI entry point
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ ai/                  # πŸ€– Gemini logic
β”‚   β”œβ”€β”€ aws/                 # ☁️ ECS + ECR utilities
β”‚   β”œβ”€β”€ commands/            # 🧾 CLI command handlers
β”‚   β”œβ”€β”€ templates/           # 🧰 Dockerfile templates
β”‚   └── utils/               # 🧱 Logging, prompts, etc.
β”œβ”€β”€ .env                     # πŸ” Environment secrets
β”œβ”€β”€ package.json
└── README.md

πŸ” .env Configuration

Create a .env file in the root:

GEMINI_API_KEY=your-google-api-key
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_REGION=us-east-1
CLUSTER_NAME=your-cluster-name
SERVICE_NAME=your-service-name

🌍 Supported Frameworks

  • ⚑ Node.js (Express)
  • 🐍 Python (Django)
  • 🧬 Go (Go Modules)
  • β˜• Java (Spring Boot)

🌍 Demo Video

automted_deploy.mp4

πŸ“¦ NPM Package Info

  • πŸ“› CLI Name: mydeploy
  • πŸ“ Main: cli.js (via bin/)
  • πŸ”– Version: 1.0.0
  • πŸ“š License: ISC
  • πŸ‘€ Author:

πŸ› Issues & Feedback

Found a bug or have a suggestion? Open an issue β€” contributions welcome!


πŸ’¬ Star ⭐ the repo if this saved you time!