{"id":25231354,"url":"https://github.com/migueldcdev/ts-supabase-aws-ci-cd-app","last_synced_at":"2025-04-05T15:24:22.917Z","repository":{"id":274449942,"uuid":"922919898","full_name":"migueldcdev/ts-supabase-aws-ci-cd-app","owner":"migueldcdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-30T14:28:07.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T12:35:54.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/migueldcdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-27T10:27:49.000Z","updated_at":"2025-01-30T14:28:10.000Z","dependencies_parsed_at":"2025-01-27T12:40:59.753Z","dependency_job_id":null,"html_url":"https://github.com/migueldcdev/ts-supabase-aws-ci-cd-app","commit_stats":null,"previous_names":["migueldcdev/ts-supabase-aws-ci-cd-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueldcdev%2Fts-supabase-aws-ci-cd-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueldcdev%2Fts-supabase-aws-ci-cd-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueldcdev%2Fts-supabase-aws-ci-cd-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueldcdev%2Fts-supabase-aws-ci-cd-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/migueldcdev","download_url":"https://codeload.github.com/migueldcdev/ts-supabase-aws-ci-cd-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247355417,"owners_count":20925626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-11T12:28:25.809Z","updated_at":"2025-04-05T15:24:22.884Z","avatar_url":"https://github.com/migueldcdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + TypeScript + Vite + Supabase + AWS Deployment\n\n## **Overview**\n\nThis project is a **React + TypeScript** web application built with **Vite**. It provides user authentication using **Supabase** and allows users to manage a product list through basic CRUD operations. The application is designed to be easily deployable using **Docker** and **AWS ECS**, with CI/CD automation handled via **GitHub Actions**.\n\n---\n\n## **Key Features**\n\n- **Modern Frontend Stack**: Uses React with TypeScript and Vite for a fast and efficient development experience.\n- **User Authentication**: Secure login/logout system powered by Supabase.\n- **Product Management**: Allows users to create, update, read, and delete products.\n- **Tailwind CSS**: Provides a clean, responsive, and easily customizable UI.\n- **CI/CD Integration**: GitHub Actions automate testing, linting, and deployment.\n- **Dockerized Setup**: The entire app runs and deploys via Docker for easy scalability.\n- **AWS Deployment**: Uses AWS ECS to ensure reliable and scalable hosting.\n\n---\n\n## **Technology Stack \u0026 Reasoning**\n\n- **React + TypeScript**: Ensures type safety and maintainability.\n- **Vite**: Provides a faster and leaner development experience compared to Create React App.\n- **Supabase**: Chosen as the backend due to its Firebase-like capabilities but with PostgreSQL support, making it scalable and flexible.\n- **Tailwind CSS**: Allows for rapid UI development with utility-first styling, reducing the need for custom stylesheets.\n- **Docker**: Simplifies the development and deployment processes by containerizing the application.\n- **AWS ECS**: Used for deployment due to its high availability, automatic scaling, and integration with other AWS services.\n- **GitHub Actions**: Automates code quality checks and deployments to AWS, ensuring smooth and consistent updates.\n\n---\n\n## **Setup Instructions**\n\n### **1. Prerequisites**\n\n- Node.js (v18 or later)\n- npm or yarn installed\n- Docker installed\n- AWS CLI configured (for deployment)\n\n### **2. Installation**\n\n1. Clone the repository.\n2. Navigate to the project directory.\n3. Install dependencies using `npm install` or `yarn install`.\n\n### **3. Environment Variables**\n\nCreate a `.env.local` file in the root directory with the necessary Supabase credentials and AWS secrets.\n\n### **4. Running the Application Locally**\n\n1. Start the development server using `npm run dev`.\n2. Open `http://localhost:5173` in your browser.\n\n### **5. Running with Docker**\n\n1. Build the Docker image using `docker build -t my-app .`.\n2. Start a container using `docker run -p 5173:5173 my-app`.\n3. Alternatively, use `docker-compose up` for multi-container orchestration.\n\n### **6. Running Tests**\n\nRun `npm test` to execute unit and integration tests.\n\n---\n\n## **Application Usage**\n\n### **Login**\n\n- Users must authenticate using their Supabase credentials.\n- If login fails, an error message will be displayed.\n\n### **Product Management**\n\n- **Add Product**: Enter a name and price, then click the Add button.\n- **Update Product**: Click the Edit button next to a product, modify the fields, and save.\n- **Delete Product**: Click the Delete button to remove a product permanently.\n- Changes are automatically reflected in the UI without requiring a page refresh.\n\n---\n\n## **CI/CD \u0026 Deployment**\n\n### **1. Continuous Integration (CI)**\n\n- GitHub Actions runs tests and lints the code on every push.\n- If tests fail, the code is not merged into the main branch.\n\n### **2. Continuous Deployment (CD)**\n\n- On merging a pull request into the `main` branch:\n  - The app is built and tested.\n  - A Docker image is created and pushed to AWS Elastic Container Registry (ECR).\n  - The AWS ECS service is updated to deploy the new version.\n\n---\n\n## **Final Notes**\n\n- This project is designed for **scalability and maintainability**, making it easy to expand.\n- The use of **Supabase, Tailwind, and AWS** ensures a modern and efficient development workflow.\n- The entire application is containerized for **portability and easy deployment**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigueldcdev%2Fts-supabase-aws-ci-cd-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmigueldcdev%2Fts-supabase-aws-ci-cd-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigueldcdev%2Fts-supabase-aws-ci-cd-app/lists"}