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 .
http://www.azulacero.mx/huizar-pos/
- Yii 2.x (PHP 5.4.0)
- MySQL
- Composer
- 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
)
- 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
- 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),
}
- 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.