Making a new app
1. Setting up
All the code/resources for a particular app goes in specially labelled directories.
Lets say we want to make a new app called inventory, which will be some kind of inventory management tool.
Create the following directories:
/webpages/inventoryFor all your app's webpages./resources/inventoryFor all your app's stylesheets, images, etc./backend/api/inventoryFor all your app's API routes.
2. Making webpages for the app
Create a page.html file at /webpages/inventory/page.html. This will be the entry point to your app.
All of the pages for this particular app must exist within /webpages/inventory/.
3. Building a backend for the app
All backend code for the app must go in the /backend/inventory directory.
Each backend php file should generally serve a single purpose. This is to keep the backend code simple and contained. If the php file is to be used as an API endpoint, then the file name should be prepended with the method used to access the file. E.g. GET-inventory.php.
Each backend file that is used as an endpoint should follow this guide to ensure Rapid Apps best practices and security.
4. Good luck
No more rules, go have fun and build however you like!