{"id":31696645,"url":"https://github.com/hoyirul/gacoan-pos","last_synced_at":"2026-04-29T16:31:35.651Z","repository":{"id":318359591,"uuid":"1070860925","full_name":"hoyirul/gacoan-pos","owner":"hoyirul","description":"A simple but functional Point of Sale (POS) system for Gacoan-style F\u0026B operations, built with Next.js App Router, Prisma ORM, and SQLite.","archived":false,"fork":false,"pushed_at":"2025-10-06T17:25:43.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"development","last_synced_at":"2025-10-06T19:26:30.906Z","etag":null,"topics":["management","nextjs","point-of-sale","rest-api","restaurant","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://youtu.be/7r16z_Yuv4w","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/hoyirul.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-06T14:32:08.000Z","updated_at":"2025-10-06T17:25:46.000Z","dependencies_parsed_at":"2025-10-06T19:26:35.767Z","dependency_job_id":"cbeab693-ae2d-4436-8772-4b72ead86867","html_url":"https://github.com/hoyirul/gacoan-pos","commit_stats":null,"previous_names":["hoyirul/gacoan-pos"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hoyirul/gacoan-pos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyirul%2Fgacoan-pos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyirul%2Fgacoan-pos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyirul%2Fgacoan-pos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyirul%2Fgacoan-pos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoyirul","download_url":"https://codeload.github.com/hoyirul/gacoan-pos/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyirul%2Fgacoan-pos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32434583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: 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":["management","nextjs","point-of-sale","rest-api","restaurant","tailwindcss","typescript"],"created_at":"2025-10-08T17:10:22.297Z","updated_at":"2026-04-29T16:31:35.628Z","avatar_url":"https://github.com/hoyirul.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gacoan POS (Point of Sale)\n\nA simple but functional Point of Sale (POS) system for Gacoan-style F\u0026B operations, built with Next.js App Router, Prisma ORM, and SQLite.\n\n# Youtube\n[Link Youtube](https://youtu.be/7r16z_Yuv4w)\n\n---\n\n## ✨ Features\n\n- ✅ Admin login\n- ✅ Ingredient (bahan baku) management\n- ✅ Menu management with BOM (Bill of Materials)\n- ✅ Stok update with mutation history\n- ✅ Auto-disable menu when ingredient stock is insufficient\n- ✅ Transaction recording (name, total, menu list)\n- ✅ Image upload support for menu items\n- ✅ SQLite for fast local development\n\n---\n\n## 🛠️ Tech Stack\n\n- **Next.js 13+ App Router**\n- **Prisma ORM**\n- **SQLite**\n- **Tailwind CSS**\n- **TypeScript**\n\n---\n\n## 🚀 Getting Started\n\n### 1. Clone the repo\n```bash\ngit clone https://github.com/yourusername/gacoan-pos.git\ncd gacoan-pos\n```\n### 2. Install dependencies\n```bash\nCopy code\nnpm install\n```\n### 3. Setup Prisma \u0026 Database\n```bash\nCopy code\nnpx prisma migrate dev --name init\n(This will create the SQLite dev.db file and apply the schema.)\n\nOptional: Generate Prisma client manually\n\nbash\nCopy code\nnpx prisma generate\n```\n### 4. Run the app\n```bash\nCopy code\nnpm run dev\nApp will be available at http://localhost:3000\n```\n\n🧪 Admin Credentials\nYou can manually create an admin user in the database.\n\nExample seed script or via Prisma Studio:\n\n```bash\nCopy code\nnpx prisma studio\nCreate a user with:\n\nADMIN\nusername: admin\npassword: password\n\nCASHIER\nusername: cashier\npassword: password\n\n🗃️ Database Schema (Prisma)\nUser — for admin login\n\nIngredient — bahan baku\n\nStockMutation — log perubahan stok\n\nMenu — daftar makanan/minuman\n\nBOM — bahan baku per menu\n\nTransaction — data penjualan\n\n📁 Folder Structure (simplified)\npgsql\nCopy code\napp/\n  ├─ admin/\n  │   ├─ ingredients/\n  │   ├─ menu/\n  │   ├─ transactions/\n  │   └─ login/\n  ├─ (user-facing)/\nlib/\n  └─ prisma.ts\nprisma/\n  └─ schema.prisma\n📝 TODO / Improvements\n Upload image (menu) ke file storage atau Cloudinary\n\n Export laporan transaksi\n\n Role management (kasir, admin)\n\n Responsive UI\n\n API protection with middleware\n\n📃 License\nMIT — free to use for personal or commercial use.\n\n🧑‍💻 Author\nBuilt by @mochammadhairullah 🚀\n\nyaml\nCopy code\n\n---\n```\n### ✅ Next Step\n\nSimpan file ini sebagai `README.md` di root project kamu:\n\n```bash\ntouch README.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoyirul%2Fgacoan-pos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoyirul%2Fgacoan-pos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoyirul%2Fgacoan-pos/lists"}