Giter Site home page Giter Site logo

huizar-pos's Introduction

Huizar-POS

A web GUI with a RESTful API where data can be fed to.

It has two main entry points: /web the GUI and /api the RESTful server .

Demo

http://www.azulacero.mx/huizar-pos/

Requirements

  • Yii 2.x (PHP 5.4.0)
  • MySQL
  • Composer

Instructions

  • Deploy to server and instruct composer to install dependencies
  • Setup /config/db.php with your DB credentials
  • Setup /config/params.php with your ESP credentials

Either:

  • Run migrations in /migrations folder
  • Or import /sample.sql (e.g. mysql -u MYSQL_USER -p DB_NAME < PATH_TO_SAMPLE.SQL)

TODO

  • Implement migrations
  • Add RESTful API for managing customers and orders
  • Implement ESP APIs to send email
  • Design HTML template(s)
  • Add access control
  • Integrate order search to website

API

Customers
  • POST /api/v1/customers
  • PUT/PATCH /api/v1/customers/{id}
  • DELETE /api/v1/customers/{id}

Model

Customers {
    id (integer, unique),
    first_name (string),
    last_name (string),
    email (string, unique),
}
Orders
  • POST /api/v1/orders
  • PUT/PATCH /api/v1/orders/{id}
  • DELETE /api/v1/orders/{id}

Model

Orders {
    id (integer, unique),
    status (string, accepted-values=('recibido' | 'finalizado' | 'entregado'), case-sensitive),
    customer_id (integer, referenced 'Customer' must have been submitted),
}

Bulk submission is not supported at any API endpoint.

huizar-pos's People

Contributors

decimoseptimo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.