Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simplicitesoftware/module-burgers
Burgers demo module
https://github.com/simplicitesoftware/module-burgers
burgers low-code simplicite
Last synced: about 1 month ago
JSON representation
Burgers demo module
- Host: GitHub
- URL: https://github.com/simplicitesoftware/module-burgers
- Owner: simplicitesoftware
- Created: 2019-10-07T11:23:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T11:42:51.000Z (over 2 years ago)
- Last Synced: 2024-11-07T20:37:24.553Z (3 months ago)
- Topics: burgers, low-code, simplicite
- Language: JavaScript
- Size: 1.23 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](https://docs.simplicite.io//logos/logo250.png)
* * *`Burgers` module definition
===========================[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=simplicite-modules-Burgers&metric=alert_status)](https://sonarcloud.io/dashboard?id=simplicite-modules-Burgers)
### 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:```json
{
"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
UserPwd
update
burgers
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 | | Email |
| `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)_ | | | | _Email_ |
| `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)_ | | | | _Email_ |
| _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**