{"id":35777760,"url":"https://github.com/armandwipangestu/freshbite","last_synced_at":"2026-01-18T02:47:03.044Z","repository":{"id":331595012,"uuid":"864723073","full_name":"armandwipangestu/freshbite","owner":"armandwipangestu","description":"An e-commerce (fruits \u0026 vegetables) build using Laravel, Filament, Inertia.js, React.js, Shadcn/ui, Midtrans, RajaOngkir, Google SSO","archived":false,"fork":false,"pushed_at":"2026-01-10T20:27:41.000Z","size":3415,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T02:37:24.736Z","etag":null,"topics":["cicd","docker","docker-compose","filament","google-sso","intertiajs","laravel","midtrans","rajaongkir","reactjs","shadcn-ui"],"latest_commit_sha":null,"homepage":"https://freshbite.app","language":"PHP","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/armandwipangestu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":["https://saweria.co/armandwipangestu"]}},"created_at":"2024-09-29T01:47:12.000Z","updated_at":"2026-01-10T20:27:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/armandwipangestu/freshbite","commit_stats":null,"previous_names":["armandwipangestu/freshbite"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/armandwipangestu/freshbite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandwipangestu%2Ffreshbite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandwipangestu%2Ffreshbite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandwipangestu%2Ffreshbite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandwipangestu%2Ffreshbite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armandwipangestu","download_url":"https://codeload.github.com/armandwipangestu/freshbite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armandwipangestu%2Ffreshbite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cicd","docker","docker-compose","filament","google-sso","intertiajs","laravel","midtrans","rajaongkir","reactjs","shadcn-ui"],"created_at":"2026-01-07T05:26:40.176Z","updated_at":"2026-01-12T15:43:48.834Z","avatar_url":"https://github.com/armandwipangestu.png","language":"PHP","funding_links":["https://saweria.co/armandwipangestu"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFreshBite: Fruit \u0026 Vegetable E-Commerce\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eAn e-commerce (fruits \u0026 vegetables) build using Laravel, Filament, Inertia.js, React.js, Shadcn/ui, Midtrans, RajaOngkir, Google SSO \u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![Docker](https://img.shields.io/badge/-Docker-131821?style=for-the-badge\u0026logo=docker)\u0026nbsp;\n![Laravel](https://img.shields.io/badge/-Laravel-131821?style=for-the-badge\u0026logo=laravel)\u0026nbsp;\n![Vite](https://img.shields.io/badge/-Vite-131821?style=for-the-badge\u0026logo=vite)\u0026nbsp;\n![React](https://img.shields.io/badge/-React-131821?style=for-the-badge\u0026logo=react)\u0026nbsp;\n![Inertia.js](https://img.shields.io/badge/-Inertia.js-131821?style=for-the-badge\u0026logo=inertia)\u0026nbsp;\n![TailwindCSS](https://img.shields.io/badge/-TailwindCSS-131821?style=for-the-badge\u0026logo=tailwindcss)\u0026nbsp;\n![Shadcn/ui](https://img.shields.io/badge/-Shadcn/ui-131821?style=for-the-badge\u0026logo=shadcnui)\u0026nbsp;\n![Filament](https://img.shields.io/badge/-Filament-131821?style=for-the-badge\u0026logo=filament)\u0026nbsp;\n![Midtrans](https://img.shields.io/badge/-Midtrans-131821?style=for-the-badge\u0026logo=midtrans)\u0026nbsp;\n![RajaOngkir](https://img.shields.io/badge/-RajaOngkir-131821?style=for-the-badge\u0026logo=rajaongkir)\u0026nbsp;\n![Google SSO](https://img.shields.io/badge/-Google_SSO-131821?style=for-the-badge\u0026logo=googlecloud)\u0026nbsp;\n![Cloudflare](https://img.shields.io/badge/-Cloudflare-131821?style=for-the-badge\u0026logo=cloudflare)\u0026nbsp;\n![CI/CD](https://img.shields.io/badge/-CI/CD-131821?style=for-the-badge\u0026logo=githubactions)\u0026nbsp;\n\n\u003c/div\u003e\n\n## Features\n\n- **Modern E-Commerce**: Seamless shopping experience for fruits and vegetables.\n- **Payment Gateway**: Secure transactions integrated with **Midtrans**.\n- **Shipping Integration**: Real-time shipping cost calculations via **RajaOngkir**.\n- **Secure Auth**: One-tap login using **Google SSO** (Socialite).\n- **Admin Dashboard**: Powerful resource management with **Filament PHP**.\n- **Fast Frontend**: Reactive UI powered by **React.js**, **Inertia.js**, and **Shadcn/ui**.\n- **Docker Ready**: Optimized multi-stage builds and container orchestration.\n- **Automated CI/CD**: Seamless deployment to servers behind NAT using **Cloudflare Tunnel**.\n\n## Running the Application\n\n### Option 1: Local Development (Native)\n\n#### 1. Prerequisites\nEnsure you have **PHP 8.2+**, **Composer**, **Node.js**, and **MySQL** installed.\n\n#### 2. Setup\n```bash\n# Clone the repository\ngit clone https://github.com/armandwipangestu/freshbite.git\ncd freshbite\n\n# Install PHP dependencies\ncomposer install\n\n# Install JS dependencies\nnpm install\n\n# Setup environment\ncp .env.example .env\nphp artisan key:generate\n```\n\n#### 3. Database \u0026 Seeds\nUpdate your `.env` with your database credentials, then run:\n```bash\nphp artisan migrate --seed\n```\n\n#### 4. Run Development Servers\nYou will need two terminals running:\n\n**Terminal A (Vite):**\n```bash\nnpm run dev\n```\n\n**Terminal B (Laravel):**\n```bash\nphp artisan serve\n```\n\n---\n\n### Option 2: Using Docker (Recommended)\n\nThis project includes a fully containerized setup with Nginx, PHP-FPM, Queue Workers, and a Scheduler.\n\n#### 1. Setup Environment\nCreate a `.env.docker` file or use your existing `.env`. Ensure `DB_HOST` is set to your database service name if using a shared network. Create a `.env.freshbite-db` file for the database service.\n\nHere an example of `.env.freshbite-db`:\n\n```env\nMYSQL_ROOT_PASSWORD=your_root_password\nMYSQL_DATABASE=freshbite\nMYSQL_USER=your_database_user\nMYSQL_PASSWORD=your_database_password\n```\n\n#### 2. Run with Docker Compose\nUse the following example as a guide for your `docker-compose.yml`:\n\n```yaml\nservices:\n  db:\n    image: mariadb:12.0.2-noble\n    container_name: freshbite-db\n    restart: unless-stopped\n    env_file: .env.freshbite-db\n    volumes:\n      - ./docker-data/freshbite-db:/var/lib/mysql\n    healthcheck:\n      test: [\"CMD\", \"healthcheck.sh\", \"--connect\", \"--innodb_initialized\"]\n      interval: 5s\n      timeout: 3s\n      retries: 5\n      start_period: 5s\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500M\"\n        max-file: \"3\"\n    ports:\n      - \"3309:3306\"\n\n  app:\n    image: ghcr.io/armandwipangestu/freshbite:latest\n    container_name: freshbite-app\n    restart: unless-stopped\n    env_file: .env.production\n    environment:\n      - RUN_MIGRATIONS=true\n    volumes:\n      - ./storage:/var/www/html/storage\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500M\"\n        max-file: \"3\"\n    depends_on:\n      db:\n        condition: service_healthy\n    networks:\n      - app-network\n\n  proxy:\n    image: ghcr.io/armandwipangestu/freshbite-proxy:latest\n    container_name: freshbite-proxy\n    restart: unless-stopped\n    ports:\n      - \"8080:80\"\n    volumes:\n      - ./storage/app/public:/var/www/html/public/storage\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500M\"\n        max-file: \"3\"\n    depends_on:\n      - app\n    networks:\n      - app-network\n\n  queue:\n    image: ghcr.io/armandwipangestu/freshbite:latest\n    container_name: freshbite-queue\n    restart: unless-stopped\n    env_file: .env.production\n    environment:\n      - RUN_MIGRATIONS=false\n    volumes:\n      - ./storage:/var/www/html/storage\n    command: php artisan queue:work --verbose --tries=3 --timeout=90\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500M\"\n        max-file: \"3\"\n    depends_on:\n      - app\n    networks:\n      - app-network\n\n  scheduler:\n    image: ghcr.io/armandwipangestu/freshbite:latest\n    container_name: freshbite-scheduler\n    restart: unless-stopped\n    env_file: .env.production\n    environment:\n      - RUN_MIGRATIONS=false\n    volumes:\n      - ./storage:/var/www/html/storage\n    command: php artisan schedule:run\n    logging:\n      driver: \"json-file\"\n      options:\n        max-size: \"500M\"\n        max-file: \"3\"\n    depends_on:\n      - app\n    networks:\n      - app-network\n\nnetworks:\n  app-network:\n    driver: bridge\n```\n\nRun the stack:\n```bash\ndocker compose up -d\n```\n\n## Infrastructure\n\n- **Optimization**: Uses a custom base image for PHP dependencies to reduce build times by \u003e70%.\n- **Reverse Proxy**: Nginx is configured to serve static assets and proxy PHP requests to the FPM container.\n- **Workers**: A dedicated queue worker handles background jobs (emails, etc.).\n- **Scheduler**: A lightweight cron-like service runs Laravel schedule commands.\n\n## Sponsor this project\n\n- Saweria: https://saweria.co/armandwipangestu","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmandwipangestu%2Ffreshbite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmandwipangestu%2Ffreshbite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmandwipangestu%2Ffreshbite/lists"}