https://github.com/prakshal0809/task-manager-aws_project
https://github.com/prakshal0809/task-manager-aws_project
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prakshal0809/task-manager-aws_project
- Owner: Prakshal0809
- Created: 2025-09-29T19:14:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-29T20:45:43.000Z (9 months ago)
- Last Synced: 2025-09-29T22:13:26.097Z (9 months ago)
- Language: JavaScript
- Size: 222 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-CICD.md
Awesome Lists containing this project
README
# ๐ CI/CD Pipeline for Task Manager
> **Status**: โ
CI/CD Pipeline Active - EC2 Git Setup Complete!
## Quick Start
### 1. Set up GitHub Secrets
Go to your GitHub repo โ Settings โ Secrets and variables โ Actions
Add these secrets:
- `EC2_HOST`: `3.99.190.114`
- `EC2_SSH_KEY`: Content of your `task-manager-key.pem` file
- `AWS_ACCESS_KEY_ID`: Your AWS access key
- `AWS_SECRET_ACCESS_KEY`: Your AWS secret key
### 2. Push to GitHub
```bash
git add .
git commit -m "Add CI/CD pipeline"
git push origin main
```
### 3. Watch the Magic! โจ
- Go to your GitHub repo โ Actions tab
- Watch your app automatically deploy when you push code!
## What Happens When You Push?
1. **๐งช Tests Run** - Backend and frontend tests execute
2. **๐๏ธ Build** - Frontend gets built for production
3. **๐ Deploy Backend** - Code is pulled to EC2 and PM2 restarts
4. **๐ Deploy Frontend** - Built files are uploaded to S3
## Benefits
- โ
**No more manual deployment**
- โ
**Automatic testing** before deployment
- โ
**Consistent environment** every time
- โ
**Professional workflow**
## Files Created
- `.github/workflows/deploy.yml` - GitHub Actions workflow
- `scripts/setup-cicd.sh` - Setup script
- `docs/CI-CD-SETUP.md` - Detailed documentation
- `backend/src/tests/app.test.js` - Backend tests
- `frontend/src/App.test.js` - Frontend tests
## Need Help?
Check the detailed guide: `docs/CI-CD-SETUP.md`
---
**Happy Deploying! ๐**