-
Notifications
You must be signed in to change notification settings - Fork 1
user guide
Dusan edited this page Jun 3, 2023
·
1 revision
With the prototype builder, you can generate your application with a single script. You only need to create a JSON file (see examples) and run the ADIOS/src/CLI/build-prototype.php
.
Prototype builder generates:
- Folder structure
- Configuration files for the application and for the environment
- Widgets with sidebar links
- Models with placeholders for the callbacks
- Actions (a.k.a. controllers)
- Initial database (configuration, admin user)
- Create your project folder (a "ROOT_DIR").
- Create composer.json file in the ROOT_DIR (see sample composer.json).
- Run
composer install
- Create a prototype.json file in the ROOT_DIR (see examples).
- Run:
php vendor/wai-blue/adios/src/CLI/build-prototype.php -I prototype.json -A vendor/autoload
from the ROOT_DIR. - In a browser, launch install.php script whic is now in the ROOT_DIR folder (the file was created by the prototype builder). If you use localhost, it may be something like http://localost/your_project/install.php.
- Log in as administrator. Login and password are shown in the browser.
php <PATH_TO_ADIOS>\src\CLI\build-prototype.php ^
--salt myfirstapp ^
--input myfirstapp.json ^
--rewrite-base /myfirstapp/ ^
--root-url http://localhost/myfirstapp ^
--output-folder <PATH_TO_PROJECT_ROOT_FOLDER> ^
#!/bin/bash
php <PATH_TO_ADIOS>/src/CLI/build-prototype.php \
--salt myfirstapp \
--input myfirstapp.json \
--rewrite-base /myfirstapp/ \
--root-url http://localhost/myfirstapp \
--output-folder <PATH_TO_PROJECT_ROOT_FOLDER>
If you have some troubles, see troubleshooting section.