Skip to content

driano7/Xoco-POS

Repository files navigation

Logo Xoco Café

Xoco POS — Sistema de Punto de Venta

Ventas • Inventario • Flujo de Preparación • Operación Interna


🌱 Descripción General

Xoco POS es el sistema oficial de Punto de Venta diseñado para las operaciones internas de Xoco Café.
Administra ventas, flujo de preparación, control de inventario y coordinación del staff.

Algunas ideas de interfaz y conceptos del punto de venta fueron inspirados en el proyecto open-source Frappe Books:
https://github.com/frappe/books.

El sistema ha sido adaptado, rediseñado y programado específicamente para Xoco Café.


⭐ Funciones Principales

  1. Procesamiento de Ventas. Interfaz rápida e intuitiva para registrar pedidos.
  2. Flujo de Preparación. Actualizaciones en tiempo real para baristas y staff.
  3. Inventario y Consumo. Registro de ingredientes, niveles de stock y alertas.
  4. Gestión de Usuarios. Roles de Administrador, Barista y Cajero.
  5. Reportes y Métricas. Ventas, historial y análisis de desempeño.
  6. Diseño Multiplataforma. Funcionamiento en tableta, touchscreen y escritorio.

🧱 Componentes del Sistema

💸 Operación POS

  • Interfaz de caja para ventas y tickets.
  • Catálogo de productos con categorías y modificadores.
  • Cálculo automático de impuestos.
  • Múltiples métodos de pago.

🍽️ Flujo de Preparación

  • Tablero de órdenes en tiempo real.
  • Enrutamiento automático por categoría.
  • Tiempos de preparación y estado por pedido.

📦 Inventario

  • Consumo por ingrediente y receta.
  • Alertas de bajo inventario.
  • Referencia de proveedores y costos.

👥 Roles de Usuario

  • Administrador, Barista, Cajero.
  • Permisos por módulo o acción.

💻 Tecnologías

Tecnología Función
React.js Framework principal de la interfaz.
Node.js / Express API y lógica de negocio.
Firebase / MongoDB Base de datos y autenticación.
Netlify / Vercel Plataforma de despliegue.
Tailwind / Styled Components Estilos de la interfaz.
PWA Compatibilidad con tabletas y móviles.

🔁 Migración & Inspiración

Algunos patrones de interfaz y conceptos fueron referenciados y adaptados del proyecto:
➡️ https://github.com/frappe/books.

Todo el código del sistema POS ha sido reimplementado, reestructurado o adaptado por Donovan Riaño para ajustarse al ecosistema de Xoco Café.


📚 Documentación técnica

  • Guía para sincronizar tablas Supabase ↔ SQLite — pasos para extender el dataset offline del POS y consumirlo desde los endpoints.
  • docs/client-ticket-prompt.md, docs/pos-address-prompt.md — prompts técnicos listos para integraciones específicas de la app cliente.
  • schema.sqlite.sql — copia lista del esquema simplificado (SQLite) para regenerar local.db desde este repo.

✒️ Créditos

Equipo Fundador

  • Sergio Cortés.
  • Alejandro Galván.
  • Donovan Riaño.
  • Juan Aragón.

Desarrollo

  • Desarrollador Principal: Donovan Riaño.
  • Funcionalidades del POS adaptadas exclusivamente para la operación interna de Xoco Café.
  • Algunas tareas fueron asistidas con IA (Codex), con verificación manual.

📜 Licencia — Apache License 2.0

El sistema Xoco POS es propiedad intelectual de Xoco Café.
Todo el código y arquitectura fueron desarrollados por:
Donovan Riaño (Desarrollador Principal).

Bajo la licencia Apache 2.0:

  • Debe mantenerse la atribución a Xoco Café.
  • Debe preservarse el crédito a Donovan Riaño.
  • La redistribución debe incluir esta licencia.
  • Se aplican derechos y protecciones de patente.
  • Cualquier modificación debe documentarse.

Revisa el archivo LICENSE para los términos legales completos.


🧾 Encabezados de Licencia por Tipo de Archivo

Incluye el encabezado correspondiente cuando crees o modifiques archivos en este repositorio:

Archivos JS / TS / TSX / JSX / Configuración

/*
 * --------------------------------------------------------------------
 *  Xoco POS — Point of Sale System
 *  Software Property of Xoco Café
 *  Copyright (c) 2025 Xoco Café
 *  Principal Developer: Donovan Riaño
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at:
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *  --------------------------------------------------------------------
 *  PROPIEDAD DEL SOFTWARE — XOCO CAFÉ.
 *  Sistema Xoco POS — Punto de Venta.
 *  Desarrollador Principal: Donovan Riaño.
 *
 *  Este archivo está licenciado bajo Apache License 2.0.
 *  Consulta el archivo LICENSE en la raíz del proyecto para más detalles.
 * --------------------------------------------------------------------
 */

Archivos CSS / SCSS / Tailwind

/*
 * --------------------------------------------------------------------
 *  Xoco POS — Styling
 *  Part of the Xoco POS — Point of Sale System.
 *  Software Property of Xoco Café.
 *  Copyright (c) 2025 Xoco Café.
 *  Principal Developer: Donovan Riaño.
 *
 *  Licensed under the Apache License, Version 2.0.
 *  See the LICENSE file in the project root for full details.
 *
 *  PROPIEDAD DEL SOFTWARE — XOCO CAFÉ.
 *  Este archivo de estilos forma parte del sistema Xoco POS.
 * --------------------------------------------------------------------
 */

Archivos HTML

<!--
  --------------------------------------------------------------------
  Xoco POS — Point of Sale System.
  Software Property of Xoco Café.
  Copyright (c) 2025 Xoco Café.
  Principal Developer: Donovan Riaño.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at:
      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  --------------------------------------------------------------------
  PROPIEDAD DEL SOFTWARE — XOCO CAFÉ.
  Sistema Xoco POS — Punto de Venta.
  Desarrollador Principal: Donovan Riaño.
  Consulta el archivo LICENSE en la raíz del proyecto para más detalles.
  --------------------------------------------------------------------
-->

Xoco Café Logo

Xoco POS — Point of Sale System

Integrated Sales • Inventory • Workflow • Operations


🌱 Overview

Xoco POS is the official Point of Sale system developed for Xoco Café’s internal operations.
It manages sales, order flow, inventory tracking, and real-time staff coordination.
Some POS-related concepts and interface ideas were inspired by the open-source project Frappe Books:
https://github.com/frappe/books.

The system is adapted, redesigned, and reimplemented specifically for Xoco Café.


⭐ Core Features

  1. Sales Processing. Fast and intuitive order creation interface.
  2. Order Workflow. Real-time updates for baristas and staff.
  3. Inventory & Consumption Tracking. Stock levels, usage logs, and alerts.
  4. User Management. Role-based permissions for Admin, Barista, and Cashier.
  5. Analytics & Reporting. Sales metrics and historical performance data.
  6. Cross-Platform Interface. Optimized for tablets, touchscreens, and desktop use.

🧱 System Components

💸 POS Operations

  • Cashier interface for orders and receipts.
  • Product catalog with categories and modifiers.
  • Automated tax calculations.
  • Multiple payment method support.

🍽️ Preparation Flow

  • Real-time order board for baristas.
  • Automatic routing by drink or food category.
  • Timers and preparation status tracking.

📦 Inventory Management

  • Ingredient consumption tracking per order.
  • Low-stock alerts.
  • Supplier reference and cost data.

👥 User & Role System

  • Admin, Barista, Cashier roles.
  • Permissions assigned per action or module.

💻 Technology Stack

Technology Purpose
React.js Main user interface framework.
Node.js / Express Backend logic and API routing.
Firebase / MongoDB Database and authentication layer.
Netlify / Vercel Deployment platform.
Tailwind CSS / Styled Components Styling system.
PWA Support Mobile/tablet-friendly capabilities.

🔁 Migration & Source Inspiration

Some interface patterns and conceptual approaches were referenced and adapted from:
➡️ https://github.com/frappe/books.

All code in Xoco POS is newly implemented, restructured, or rewritten by Donovan Riaño to fit the Xoco Café ecosystem.


✒️ Credits

Founding Team

  • Sergio Cortés.
  • Alejandro Galván.
  • Donovan Riaño.
  • Juan Aragón.

Development

  • Principal Developer: Donovan Riaño.
  • POS functionalities adapted specifically for operational needs at Xoco Café.
  • Certain development tasks assisted using AI (Codex), with full manual review and modifications.

📜 License — Apache License 2.0

The Xoco POS system is the intellectual property of Xoco Café.
All code and system architecture were developed by:
Donovan Riaño (Principal Developer).

Under the Apache 2.0 License:

  • Attribution to Xoco Café is required.
  • Credit to Donovan Riaño must be maintained.
  • Software redistribution must include the Apache 2.0 license.
  • Patent protections apply.
  • Any modifications must be clearly documented.

See the LICENSE file for full legal terms.


About

:)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published