Lalabase
Tickets, Doku, Zeiterfassung und Kundengespräche an einem Ort, durchsuchbar per KI. Für Softwarefirmen mit Kundenprojekten. Open Source: auf deinem eigenen Server oder in unserer Cloud in Deutschland.
Translation pending
在庫管理アプリ(ポートフォリオ)
Translation pending
BusinessTypeScript · CSSGitHub @TakashiOnishiOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
備品・消耗品の在庫を管理する小規模チーム向けの在庫管理アプリ(PoC / ポートフォリオ)。 品目マスタの管理、入出庫・棚卸調整、発注点による低在庫アラート、品目ごとの履歴を提供します。 汎用サンプルとして一から実装したものです。特定企業のデータ・資産・社内システムには依存しません。 https://inventory-portfolio-one.vercel.app で公開しています。「小規模チームで共有する台帳」という 設計のため、Googleログインさえすれば誰でも全品目を編集・削除できます(所有者の概念なし)。 訪問者ごとの分離もありません。デモ用途のため予告なくデータをリセットする場合があります。 プライバシーポリシー / 利用規約 • items/{id} … 品目: name, sku, category, quantity, minQuantity, unit, location, updatedAt • movements/{id} … 入出庫履歴: itemId, type(in|out|adjust), delta, resultingQuantity, reason, userId, userName, createdAtRead the full README ↗
備品・消耗品の在庫を管理する小規模チーム向けの在庫管理アプリ(PoC / ポートフォリオ)。 品目マスタの管理、入出庫・棚卸調整、発注点による低在庫アラート、品目ごとの履歴を提供します。
汎用サンプルとして一から実装したものです。特定企業のデータ・資産・社内システムには依存しません。
https://inventory-portfolio-one.vercel.app で公開しています。「小規模チームで共有する台帳」という 設計のため、Googleログインさえすれば誰でも全品目を編集・削除できます(所有者の概念なし)。 訪問者ごとの分離もありません。デモ用途のため予告なくデータをリセットする場合があります。
| 領域 | 採用 | 理由 |
|---|---|---|
| フロント | Next.js 16 (App Router / TypeScript) | 型安全・App Routerで見通しの良い構成 |
| スタイル | Tailwind CSS | 一覧・モーダルUIを素早く一貫したデザインで実装 |
| 認証 | Firebase Authentication | Googleログインを最小実装で導入 |
| DB | Cloud Firestore | トランザクションで在庫と履歴の整合を担保 |
| テスト | Vitest | 在庫計算・低在庫判定ロジックのユニットテスト |
flowchart LR
U[ブラウザ / Next.js] -->|Google Sign-In| A[Firebase Auth]
U -->|品目CRUD / 入出庫| F[(Cloud Firestore)]
U -.->|トランザクション| TX[items.quantity + movements を原子的に更新]
TX --> F
S[seed スクリプト<br/>firebase-admin] -->|items 投入| F
items/{id} … 品目: name, sku, category, quantity, minQuantity, unit, location, updatedAtmovements/{id} … 入出庫履歴: itemId, type(in|out|adjust), delta, resultingQuantity, reason, userId, userName, createdAt在庫増減と低在庫判定は UI/DB に依存しない純関数(lib/stock.ts)に切り出し、
lib/__tests__/stock.test.ts でカバーしています。在庫数の更新は Firestore トランザクション
(lib/inventory.ts の applyStockMovement)で、数量更新と履歴追加を原子的に行います。
npm install
cp .env.local.example .env.local
# .env.local に Firebase の設定値を入力
firestore.rules の内容を Firebase Console の Firestore → ルール に貼り付けて公開。
サービスアカウント鍵(プロジェクトの設定 → サービスアカウント → 新しい秘密鍵)を
serviceAccountKey.json として保存(コミット禁止・.gitignore済み)。
GOOGLE_APPLICATION_CREDENTIALS=./serviceAccountKey.json npm run seed
npm run dev # http://localhost:3000
npm test # 在庫ロジックのテスト
npm run build # 本番ビルド
Firebase Hosting か Vercel にデプロイ可能。環境変数(NEXT_PUBLIC_FIREBASE_*)を
デプロイ先に設定すればそのまま動作します。
MIT