Skip to content

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

License

Notifications You must be signed in to change notification settings

decimoseptimo/huizar-pos

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published