https://github.com/hoyirul/gacoan-pos
A simple but functional Point of Sale (POS) system for Gacoan-style F&B operations, built with Next.js App Router, Prisma ORM, and SQLite.
https://github.com/hoyirul/gacoan-pos
management nextjs point-of-sale rest-api restaurant tailwindcss typescript
Last synced: 2 months ago
JSON representation
A simple but functional Point of Sale (POS) system for Gacoan-style F&B operations, built with Next.js App Router, Prisma ORM, and SQLite.
- Host: GitHub
- URL: https://github.com/hoyirul/gacoan-pos
- Owner: hoyirul
- Created: 2025-10-06T14:32:08.000Z (9 months ago)
- Default Branch: development
- Last Pushed: 2025-10-06T17:25:43.000Z (9 months ago)
- Last Synced: 2025-10-06T19:26:30.906Z (9 months ago)
- Topics: management, nextjs, point-of-sale, rest-api, restaurant, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://youtu.be/7r16z_Yuv4w
- Size: 190 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gacoan POS (Point of Sale)
A simple but functional Point of Sale (POS) system for Gacoan-style F&B operations, built with Next.js App Router, Prisma ORM, and SQLite.
# Youtube
[Link Youtube](https://youtu.be/7r16z_Yuv4w)
---
## ✨ Features
- ✅ Admin login
- ✅ Ingredient (bahan baku) management
- ✅ Menu management with BOM (Bill of Materials)
- ✅ Stok update with mutation history
- ✅ Auto-disable menu when ingredient stock is insufficient
- ✅ Transaction recording (name, total, menu list)
- ✅ Image upload support for menu items
- ✅ SQLite for fast local development
---
## 🛠️ Tech Stack
- **Next.js 13+ App Router**
- **Prisma ORM**
- **SQLite**
- **Tailwind CSS**
- **TypeScript**
---
## 🚀 Getting Started
### 1. Clone the repo
```bash
git clone https://github.com/yourusername/gacoan-pos.git
cd gacoan-pos
```
### 2. Install dependencies
```bash
Copy code
npm install
```
### 3. Setup Prisma & Database
```bash
Copy code
npx prisma migrate dev --name init
(This will create the SQLite dev.db file and apply the schema.)
Optional: Generate Prisma client manually
bash
Copy code
npx prisma generate
```
### 4. Run the app
```bash
Copy code
npm run dev
App will be available at http://localhost:3000
```
🧪 Admin Credentials
You can manually create an admin user in the database.
Example seed script or via Prisma Studio:
```bash
Copy code
npx prisma studio
Create a user with:
ADMIN
username: admin
password: password
CASHIER
username: cashier
password: password
🗃️ Database Schema (Prisma)
User — for admin login
Ingredient — bahan baku
StockMutation — log perubahan stok
Menu — daftar makanan/minuman
BOM — bahan baku per menu
Transaction — data penjualan
📁 Folder Structure (simplified)
pgsql
Copy code
app/
├─ admin/
│ ├─ ingredients/
│ ├─ menu/
│ ├─ transactions/
│ └─ login/
├─ (user-facing)/
lib/
└─ prisma.ts
prisma/
└─ schema.prisma
📝 TODO / Improvements
Upload image (menu) ke file storage atau Cloudinary
Export laporan transaksi
Role management (kasir, admin)
Responsive UI
API protection with middleware
📃 License
MIT — free to use for personal or commercial use.
🧑💻 Author
Built by @mochammadhairullah 🚀
yaml
Copy code
---
```
### ✅ Next Step
Simpan file ini sebagai `README.md` di root project kamu:
```bash
touch README.md
```