An open API service indexing awesome lists of open source software.

https://github.com/prakshal0809/task-manager-aws_project


https://github.com/prakshal0809/task-manager-aws_project

Last synced: 9 months ago
JSON representation

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! ๐ŸŽ‰**