azonmedia / guzaba-platform
A plugin based platform for creating applications
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 16
Type:guzaba-platform
Requires
- ext-json: *
- azonmedia/vue-router: dev-master
- composer/composer: ^1.10@dev
- firebase/php-jwt: dev-master
- guzaba-platform/components-base: dev-master
- guzaba-platform/guzaba-platform-installer: dev-master
- guzaba/guzaba2: dev-master
- monolog/monolog: ^2.0@dev
- psr/log: ^1.1
- slim/psr7: ^1.1.0
- symfony/console: ^5.0@dev
- symfony/var-exporter: ^5.0@dev
Requires (Dev)
- azonmedia/php-codesniffer-azonmedia-coding-standard: dev-master
- codeception/codeception: 4.1.x-dev
- codeception/module-asserts: ^1.0.0
- codeception/module-phpbrowser: ^1.0.0
- codeception/module-rest: dev-master
- guzaba-platform/guzaba-platform-tests: dev-master
- guzaba-platform/guzbaa-platform-docs: dev-master
- squizlabs/php_codesniffer: 3.*
- vimeo/psalm: ^3.0@dev
Suggests
- guzaba-platform/classes: Provides permissions management for classes
- guzaba-platform/controllers: Provides permissions management for controllers
- guzaba-platform/crud: Provides for basic CRUD operations and permissions management on all object
- guzaba-platform/request-caching: Provides request caching and faster response in certain cases
- dev-master
- v0.0.1
- dev-dependabot/npm_and_yarn/app/public_src/tough-cookie-and-vue/cli-plugin-babel-and-vue/cli-plugin-eslint-and-vue/cli-plugin-unit-jest-and-vue/cli-service-4.1.3
- dev-dependabot/npm_and_yarn/app/public_src/json5-and-json5-and-vue/cli-plugin-babel-and-vue/cli-plugin-unit-jest-and-vue/cli-service-2.2.3
- dev-dependabot/npm_and_yarn/app/public_src/loader-utils-and-vue/cli-service-1.4.2
- dev-dependabot/npm_and_yarn/app/public_src/minimist-and-minimist-and-mkdirp-and-loader-fs-cache-and-handlebars-1.2.8
- dev-dependabot/npm_and_yarn/app/public_src/hapi/hoek-8.5.1
- dev-dependabot/npm_and_yarn/app/public_src/qs-6.5.3
- dev-dependabot/npm_and_yarn/app/public_src/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/app/public_src/jquery-3.5.0
- dev-dependabot/npm_and_yarn/app/public_src/axios-0.21.2
- dev-V_0_0_7
- dev-V_0_0_6
- dev-V_0_0_5
- dev-GF_57_ARRAY_REGISTRY_INTEGRATION
- dev-CONSOLE_COMMANDS
This package is auto-updated.
Last update: 2024-11-22 21:08:39 UTC
README
Introduction
GuzabaPlatform is a plugin based system for building applications ranging from presentational websites to corporate applications. It is the testbed for the Guzaba 2 Framework. It uses Vue.js for the frontend.
Deployment in containers
There is a docker-compose file with preset environment variables available at ./app/dockerfiles/GuzabaPlatformDev/.
Before the application is started it needs to be deployed on the host system in an empty directory with:
$ echo "{}">composer.json
$ composer config minimum-stability dev
$ composer require guzaba-platform/guzaba-platform:dev-master
This will install GuzabaPlatform and run the GuzabaPlatformInstaller package that will create the needed directories & files in the root of the project. While the GuzabaPlatform depends on PHP 8.0 and Swoole these requirements are not enforced in the composer.json file as it needs to be possible to bootstrap the application from any environment and the applicattion will be always started in a container which already contains everything needed.
To deploy the application in containers execute:
$ ./app/bin/start_containers
This will start the following containers:
- swoole (in interactive mode) on port 8081
- redis on port 6379 (exported for debug purpose)
- mysql on port 3306 (exported for debug purpose)
- phpmyadmin on port 8085
- phpredisadmin on port 8086
The login for phpmyadmin is "root" : "somerootpass".
The login for phpredisadmin is "admin" : "admin".
NOTE - on first run: On the first start of the application the database needs to be imported in MySQL. This can be done through phpmyadmin or directly over the exposed port 3306. The database dump is available at ./app/database/guzaba2.sql.
After the containers are started there will be no application running yet on port 8081. This needs to be started manually. To get into the container:
$ docker exec -it guzabaplatformdev_swoole_1 /bin/bash
If the above command produces an error this is most probably related to the container name. It may differ. To find the correct name list all the running containers with:
$ docker ps
NOTE - on first run: The front end needs to be compiled - inside the container execute:
$ cd /home/local/app/public_src
$ ./build_prod
There is no need to set up local configuration in the ./app/registry because the environment file contains all the needed variables.
To start the application inside the container do:
$ /home/local/app/bin/start_server
Direct application startup
There is also a docker-compose file allowing the application to be started along with the other containers (instead of starting the swoole container in interactive mode):
$ /home/local/app/bin/start_server_in_container
Manual install
# require GuzabaPlatform
$ composer require guzaba-platform/guzaba-platform
# Create local configuration
$ cp app/registry/local.php.dist app/registry/local.php
# Build the front end
$ app/public_src/build_prod
Change the settings in your app/registry/local.php
so you can connect to the MySQL and to the Redis server.
Documentation
The complete documentation is available at Guzaba Platform Documentation.