Burgers
module definition
Introduction
This is a sample Burger shop application (backend and frontend).
Import
To import this module:
- Create a module named
Burgers
- Set the settings as:
{
"type": "git",
"origin": {
"uri": "https://github.com/simplicitesoftware/module-burgers.git"
}
}
- Click on the Import module button
Configure
In order to have the frontend working the password for the
webservices-only user burgers
must be simplicite
.
This can be achieved by importing the following XML:
<?xml version="1.0" encoding="UTF-8"?>
<simplicite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.simplicite.fr/base" xsi:schemaLocation="http://www.simplicite.fr/base https://www.simplicite.io/resources/schemas/base.xsd">
<object>
<name>UserPwd</name>
<action>update</action>
<data>
<usr_login_read>burgers</usr_login_read>
<usr_password>simplicite</usr_password>
</data>
</object>
</simplicite>
Load data
Some sample data is provided as a module's dataset.
Open this dataset and click on the Apply button after having imported the module and made a full clear cache.
BrgBurger
business object definition
Burger business object
Fields
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
brgBurgerName |
char(50) | yes* | yes | Name | |
brgBurgerPrice |
float(5, 2) | yes | yes | Price | |
brgBurgerPicture |
image | yes | Picture | ||
brgBurgerDescription |
html(100) | yes | Description |
BrgIngredient
business object definition
Burger ingredient
Fields
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
brgIngredientName |
char(50) | yes* | yes | Name | |
brgIngredientPrice |
float(5, 2) | yes | yes | Price |
BrgComposition
business object definition
Burger composition business object
Fields
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
brgCompositionBurgerId link to BrgBurger |
id | yes* | yes | Burger | |
Ref. brgCompositionBurgerId.brgBurgerName |
char(50) | Name | |||
brgCompositionIngredientId link to BrgIngredient |
id | yes* | yes | Ingredient | |
Ref. brgCompositionIngredientId.brgIngredientName |
char(50) | Name | |||
brgCompositionQuantity |
int(100) | yes | yes | Quantity |
BrgCustomer
business object definition
Burger customer business object
Fields
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
brgCustomerEmail |
email(100) | yes* | yes | ||
brgCustomerPhone |
phone(20) | yes | Phone number | ||
brgCustomerLastname |
char(100) | yes | yes | Last name | |
brgCustomerFirstname |
char(100) | yes | yes | First name |
BrgExclusion
business object definition
Burger user's ingredient exclusion business object
Fields
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
brgExclusionCustomerId link to BrgCustomer |
id | yes* | yes | Customer | |
Ref. brgExclusionCustomerId.brgCustomerEmail |
email(100) | ||||
brgExclusionIngredientId link to BrgIngredient |
id | yes* | yes | Ingredient | |
Ref. brgExclusionIngredientId.brgIngredientName |
char(50) | Name |
BrgOrder
business object definition
Burger order
Fields
Name | Type | Required | Updatable | Personal | Description |
---|---|---|---|---|---|
brgOrderDatetime |
datetime | yes* | Date and time | ||
brgOrderCustomerId link to BrgCustomer |
id | yes* | yes | Customer | |
Ref. brgOrderCustomerId.brgCustomerEmail |
email(100) | ||||
Ref. brgOrderCustomerId.brgCustomerFirstname |
char(100) | First name | |||
Ref. brgOrderCustomerId.brgCustomerLastname |
char(100) | Last name | |||
brgOrderBurgerId link to BrgBurger |
id | yes* | yes | Burger | |
Ref. brgOrderBurgerId.brgBurgerName |
char(50) | Name | |||
Ref. brgOrderBurgerId.brgBurgerPrice |
float(5, 2) | Price | |||
brgOrderComposition |
text(10000) | Composition | |||
brgOrderDate |
date | Date |
burgers
external object definition
Burger shop responsive web frontend