...
The folder named "interactions" will contain all of your interactions. Each interaction is saved within its own folder, and within these folders are two files - a JSON configuration file (which you generally don't need to modify), and a PHP file for your server side code. New files can be created using the create interaction command.
Naming Conventions
Code editors and IDEs show code formatting, styling and indenting based on the file extension of the file being viewed. In order to see pretty code formatting when viewing your BMP interaction code in a code editor you will have to follow the instructions shown in the Further Reading section, under "Naming your BMP Interactions".
Create a New Interaction
To create a new interaction, you can run the command:
...
The "type" option will allow you to change the type of interaction you create. If you leave this out, it will default to "madl".
...
Valid options are:
madl
...
: "madl" interactions will allow you to run PHP code. (default)
message
...
: "message" interactions will allow you to run HTML and Javascript content, however in most cases you will probably prefer to use the Client CLI
Code Block | ||||
---|---|---|---|---|
| ||||
bm bmp create interaction <interaction name> --type madl |
...
Code Block | ||||
---|---|---|---|---|
| ||||
bm bmp create interaction <interaction name> --remote |
Next Steps