This section aims to define all the instructions available on Nodea. You will find below all the Nodea instructions as well as for each of them their impact on the application code (on Models, Routes and Views) and also on the impact on the database.
When we execute an instruction in Nodea it generates a set of organized procedures in order to apply the expected result on the application.
Instruction | Definition | Model | Route | View | Database |
---|---|---|---|---|---|
help | Show some help to understand Nodea. |
- |
- |
- |
- |
restart | Restart the application server. |
- |
- |
- |
When server restarts, new tables are created by sequelize synchronization. |
npm install ([value]) | Install a specific npm package in the application folder. If no specific package given, it will execute npm install command in workspace folder. |
- |
- |
- |
- |
Instruction | Definition | Model | Route | View | Database |
---|---|---|---|---|---|
deploy [branch] |
Since 3.0.2 Deploy the application on the connected ‘Cloud’ environment for testing / production purpose. You can also specify the git branch to deploy. |
- |
- |
- |
When server restarts, new tables are created by sequelize synchronization on the cloud database. toSyncProd.json file is also executed ( sql alter instruction ). |
save | Execute a git push on the connected distant repository. |
- |
- |
- |
- |
reload | Execute a git pull on the connected distant repository. |
- |
- |
- |
- |
git commit | Execute a git commit on the current application. |
- |
- |
- |
- |
git status | Execute a git status on the current application. |
- |
- |
- |
- |
Instruction | Definition | Model | Route | View | Database |
---|---|---|---|---|---|
select application [value] | Select and set the application in current session. |
- |
- |
- |
- |
create application [value] | Create a new application with the given name. | Copy from the structure/template and many changes from the generator app procedure creation. | Copy from the structure/template and many changes from the generator app procedure creation. | Copy from the structure/template and many changes from the generator app procedure creation. | Copy from the structure/template and many changes from the generator app procedure creation. |
delete application [value] |
Delete the specified application. /!\ Warning /!\ The distant repository if exist will also be deleted. |
Remove everything. | Remove everything. | Remove everything. | Remove everything. |
DEPRECATED: add component cra | Create new module with activity report purpose. | See component section for more information. | See component section for more information. | See component section for more information. | See component section for more information. |
ON MAINTENANCE: add component chat | Create component chat on application. |
|
|
|
|
set logo | Set a logo on the application. |
- |
- |
|
- |
remove logo | Remove the actual logo on the application. |
- |
- |
|
- |
set theme [theme] | Apply CSS theme on the application |
- |
- |
|
- |
list theme | List all the available themes for the application. |
- |
- |
- |
- |
Instruction | Definition | Model | Route | View | Database |
---|---|---|---|---|---|
select module [value] | Select and set the module in current session. |
- |
- |
- |
- |
add module [value] | Create a new module on the application. |
- |
|
|
- |
delete module [value] | Delete the specified module. |
- |
|
|
- |
list module | List all module of the application. |
- |
- |
- |
- |
add component agenda (called [name]) | Add the component agenda to the actual module. |
|
|
|
|
delete component agenda (called [name]) | Delete the specify component agenda. |
|
|
|
|
DEPRECATED: set layout [value] |
Change de layout display of a module. |
- |
- |
|
- |
DEPRECATED: list layout |
List all available layout. |
- |
- |
- |
- |
Instruction | Definition | Model | Route | View | Database |
---|---|---|---|---|---|
select entity [value] | Select and set the entity in current session. |
- |
- |
- |
- |
list entity | List all entities of the application. |
- |
- |
- |
- |
add entity [value] | Add a new entity on the current module. |
|
|
|
|
delete entity [value] | Delete the specified entity. |
|
|
|
- |
add param entity [value] | Add a new param entity on the current module. |
|
|
|
|
set column [field] [value] |
Hide or show a column on the current entity. Two choices: show / hide |
- |
- |
|
- |
hide column [field] | Hide a column on the current entity. |
- |
- |
|
- |
show column [field] | Show a column on the current entity. |
- |
- |
|
- |
delete tab [tab] | Delete a specific tab (hasMany, hasOne, File Storage, …) on an entity. |
|
- |
|
|
entity [entity] has one [target] (called [name]) | Generate hasOne relation between 2 entities. If the target exist then it generate the link between them. If the target does not exist then it generate a subentity and link them. |
|
|
|
|
entity [entity] has many [target] (called [name]) | Generate hasMany relation between 2 entities. If the target exist then it generate the link between them. If the target does not exist then it generate a subentity and link them. |
|
|
|
|
entity [entity] has many preset [target] (called [name]) |
Generate hasMany relation between 2 entities. The target entity have to exist before executing this instruction. Generate hasMany relation but the purpose is to link already existing row instead of creating new ones. Note: ‘preset’ term can also be replaced by ‘existing’ => has many existing |
|
- |
|
|
add component status (called [name]) | Generate component status on the entity. See … for more information. |
|
|
|
|
delete component status (called [name]) | Delete component status on an entity. |
|
|
|
|
create component file storage (with name [name]) | Create component file storage on entity. |
|
|
|
|
add component address (called [name]) | Create component address on entity. |
|
|
|
|
delete component address | Remove component address on entity. |
|
- |
|
|
set icon [icon] | Set a Font Awesome icon on the entity. |
- |
- |
|
- |
list icon | Will basically give you the Font Awesome link to find the perfect icon ! |
- |
- |
- |
- |
add widget piechart on entity [entity] for field [field] (without legend) | Add widget on actual module home about the specify entity. |
- |
- |
|
- |
add widget last records on entity [entity] (limited to [value]) records with columns [columns] | Add widget on actual module home about the specify entity. Show the last row created for an entity. |
- |
- |
|
- |
add widget [widget] (on entity [entity]) | Add a widget to the module. See widget section for more information. |
- |
- |
|
- |
delete widget [widget] | Delete a specific widget. |
- |
- |
|
- |
delete widgets of entity [entity] | Delete all widget of an entity. |
- |
- |
|
- |
add component document template (with name [name]) | Add component document template on an entity. |
- |
- |
|
|
delete component document template | Remove component document template from the current entity |
- |
- |
Modify file: views/entity/show_field.dust |
|
Instruction | Definition | Model | Route | View | Database |
---|---|---|---|---|---|
add field [value] | Add a new field on the current entity. |
|
- |
|
|
list field | List all fields of the application. |
- |
- |
- |
- |
set field [field] [value] |
Set the field property with four choice available:
|
|
- |
|
|
set field [field] attribute [attribute] [value] |
Add a field attribute on the HTML element. Example: set field myField attribute maxLength 50 |
- |
- |
|
- |
create field [value] with type [type] |
Add a new field with given type. See all the available type here: URL Coming soon |
|
- |
|
- |
add field [field] with type enum and values [values] | Add a new field with type enum. Values must be comma separated. |
|
- |
|
- |
add field [field] with type radio and values [values] | Add a new field with type radio. Values must be comma separated. |
|
- |
|
- |
create field [field] related to [entity] (using [target_field]) | Create hasOne relation between 2 entities in the form of an enum field. Using option let you specify with field to show in enum from the target entity. |
|
- |
|
|
create field [field] related to many [entity] (using [target_field]) | Create hasMany relation between 2 entities in the form of an multiple enum field. Using option let you specify with field to show in enum from the target entity. |
|
- |
|
|
create field [field] related to many [entity] with type checkbox (using [target_field]) | Create hasOne relation between 2 entities in the form of an radio field. Using option let you specify with field to show in radio from the target entity. |
|
- |
|
|
add title [title] (after [field]) | Add a title after a field if specified. |
- |
- |
|
- |
remove title [title] | Remove a title. |
- |
- |
|
- |