GitHunt

RootDB

RootDB

RootDB is a self-hosted reporting webapp.

Local development, with docker images.

Obtain a shell inside the container :

docker exec -it dev-rootdb-api bash

Wipe database access & seed again

docker exec -u $(whoami) -it api php artisan db:wipe && docker exec -u $(whoami) -it api php artisan migrate &&  docker exec -u $(whoami) -it api php artisan db:seed

Unit / Features tests

docker exec -u $(whoami) -it api php artisan test
docker exec -u $(whoami) -it api php artisan test tests/Feature/APIUserOrg1_AD_Org2_D_Org3_VTest.php
docker exec -u $(whoami) -it api php artisan test --filter=APIUserOrg1_AD_Org2_D_Org3_VTest
docker exec -u $(whoami) -it api php artisan test --filter=APIUserOrg1_AD_Org2_D_Org3_VTest::testApiConfConnectorFromOrganization2PrimeReactTreeDb
docker exec -u $(whoami) -it api php artisan test --filter=APIUserOrg1_AD_Org2_D_Org3_VTest::testApiConfConnectorFromOrganization*
docker exec -u $(whoami) -it api php artisan test --filter=testApiConfConnectorFromOrganization*

Jetbrains, PhpStorm

  • Laravel IDEA or Laravel
  • Tree of Usage
  • DQL
  • PHP Annotations

Database plugin configuration

Use the MariaDB module, container IP of container rootdb-db-api : 172.20.0.50

Languages

PHP97.9%Shell1.3%PLpgSQL0.4%Blade0.4%

Contributors

GNU Affero General Public License v3.0
Created March 20, 2024
Updated August 25, 2025