automatic deployment
npm install automatic-deploybash
npm install -g automatic-deploy
`
or
`bash
npm i automatic-deploy
`
---
π» Usage
`bash
mydeploy [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
`bash
1. Analyze your project & generate Dockerfile
mydeploy init
2. Set up AWS credentials and deploy config
mydeploy config
3. Deploy your app to AWS ECS
mydeploy deploy
`
---
π 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)
---
π¦ NPM Package Info
- π CLI Name: mydeploy
- π Main: cli.js (via bin/`)