Migrate from GitHub to Gitea with CI/CD
Some checks failed
Deploy / deploy (push) Failing after 6m11s
Some checks failed
Deploy / deploy (push) Failing after 6m11s
- Add Gitea Actions workflow for automated frontend and API deployment - Update all raw download URLs from GitHub to Gitea - Remove deprecated Amplify config and GitHub-specific Terraform variables - Clean up commented-out Amplify resources from Terraform - Update documentation to reflect new repository and CI/CD setup
This commit is contained in:
55
README.md
55
README.md
@@ -4,21 +4,22 @@ A web application for tracking Bambu Lab filament inventory with automatic color
|
||||
|
||||
## Features
|
||||
|
||||
- 🎨 **Automatic Color Coding** - Table rows are automatically colored based on filament colors
|
||||
- 🔍 **Search & Filter** - Quick search across all filament properties
|
||||
- 📊 **Sortable Columns** - Click headers to sort by any column
|
||||
- 🌈 **Gradient Support** - Special handling for gradient filaments like Cotton Candy Cloud
|
||||
- 📱 **Responsive Design** - Works on desktop and mobile devices
|
||||
- 💰 **Sale Management** - Bulk sale pricing with countdown timers
|
||||
- 🔐 **Admin Panel** - Protected dashboard for inventory management
|
||||
- 📦 **Spool Types** - Support for both regular and refill spools
|
||||
- Automatic Color Coding - Table rows are automatically colored based on filament colors
|
||||
- Search & Filter - Quick search across all filament properties
|
||||
- Sortable Columns - Click headers to sort by any column
|
||||
- Gradient Support - Special handling for gradient filaments like Cotton Candy Cloud
|
||||
- Responsive Design - Works on desktop and mobile devices
|
||||
- Sale Management - Bulk sale pricing with countdown timers
|
||||
- Admin Panel - Protected dashboard for inventory management
|
||||
- Spool Types - Support for both regular and refill spools
|
||||
|
||||
## Technology Stack
|
||||
|
||||
- **Frontend**: Next.js + React + TypeScript + Tailwind CSS
|
||||
- **Backend**: Node.js API server (Express)
|
||||
- **Database**: PostgreSQL (AWS RDS)
|
||||
- **Infrastructure**: AWS Amplify (Frontend), EC2 (API), RDS (Database)
|
||||
- **Infrastructure**: AWS CloudFront + S3 (Frontend), EC2 (API), RDS (Database)
|
||||
- **CI/CD**: Gitea Actions
|
||||
- **IaC**: Terraform
|
||||
|
||||
## Prerequisites
|
||||
@@ -27,15 +28,14 @@ A web application for tracking Bambu Lab filament inventory with automatic color
|
||||
- PostgreSQL (for local development)
|
||||
- AWS Account (for deployment)
|
||||
- Terraform 1.0+ (for infrastructure)
|
||||
- GitHub account
|
||||
|
||||
## Setup Instructions
|
||||
|
||||
### 1. Clone the Repository
|
||||
|
||||
```bash
|
||||
git clone https://github.com/yourusername/filamenteka.git
|
||||
cd filamenteka
|
||||
git clone https://git.demirix.dev/DaX/Filamenteka.git
|
||||
cd Filamenteka
|
||||
```
|
||||
|
||||
### 2. Install Dependencies
|
||||
@@ -90,7 +90,7 @@ The filament table displays these columns:
|
||||
- **Boja** - Color name (e.g., Mistletoe Green, Hot Pink)
|
||||
- **Refill** - Number of refill spools
|
||||
- **Spulna** - Number of regular spools
|
||||
- **Količina** - Total quantity (refill + spulna)
|
||||
- **Kolicina** - Total quantity (refill + spulna)
|
||||
- **Cena** - Price per unit
|
||||
- **Sale** - Active sale percentage and end date
|
||||
|
||||
@@ -106,15 +106,19 @@ Unknown colors default to light gray.
|
||||
|
||||
## Deployment
|
||||
|
||||
Push to the main branch to trigger automatic deployment:
|
||||
Pushing to `main` triggers automatic deployment via Gitea Actions:
|
||||
- Frontend changes are built, tested, and deployed to S3/CloudFront
|
||||
- API changes are deployed to EC2 via AWS SSM
|
||||
|
||||
Manual deployment is also available:
|
||||
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "Update filament colors"
|
||||
git push origin main
|
||||
```
|
||||
# Frontend
|
||||
./scripts/deploy-frontend.sh
|
||||
|
||||
Amplify will automatically build and deploy your changes.
|
||||
# API
|
||||
./scripts/deploy-api-update.sh
|
||||
```
|
||||
|
||||
## Admin Panel
|
||||
|
||||
@@ -155,9 +159,7 @@ Deploy API server updates:
|
||||
|
||||
```bash
|
||||
# Use the deployment script
|
||||
./scripts/deploy-api.sh
|
||||
|
||||
# Or deploy manually to EC2 instance
|
||||
./scripts/deploy-api-update.sh
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
@@ -181,12 +183,3 @@ Deploy API server updates:
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
## Contributing
|
||||
|
||||
1. Fork the repository
|
||||
2. Create a feature branch
|
||||
3. Commit your changes
|
||||
4. Push to the branch
|
||||
5. Create a Pull Request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user