Local development
Requirements
rootdb, that will contains all code.docker compose plugin installed too)Finally, you have to update your system hosts file and add these entries :
| Hostname | IPv4 address | 
|---|---|
| 
 | 
 | 
| 
 | 
 | 
| 
 | 
 | 
Get the code
First step, you have to get the code from these Github repositories, to store in you rootdb local directory :
- Infrastructure code, containing docker images for local development : github.com/RootDBApp/infra 
- API code : github.com/RootDBApp/api 
- Frontend code : github.com/RootDBApp/frontend 
You should have something like that in your rootdb directory :
.
├── api
├── frontend
└── infra
Start development services
Frontend
frontend main directory and start it like this :$ yarn install
$ yarn start-dev
[...]
Compiled successfully!
You can now view rootdb in the browser.
  http://dev-rootdb-frontend.localhost.com:3000
Note that the development build is not optimized.
To create a production build, use yarn build.
webpack compiled successfully
No issues found.
Tip
At this point, since API services are not yet started, the display of the frontend is broken, that’s normal :)
API
infra/docker-compose-dev/rdb_mariaddb_memcached and start services with :$ user=rootdb  docker compose up
[...]
dev-rootdb-api        |
dev-rootdb-api        |    INFO  Nothing to migrate.
dev-rootdb-api        |
dev-rootdb-api        | Starting services with supervisor...
dev-rootdb-api        | [22-Mar-2024 09:40:04] NOTICE: fpm is running, pid 1
dev-rootdb-api        | [22-Mar-2024 09:40:04] NOTICE: ready to handle connections
dev-rootdb-api        | [22-Mar-2024 09:40:04] NOTICE: systemd monitor interval set to 10000ms
Tip
If you need to run composer, supervisor, or Laravel artisan command, you have to go inside the API container :
$ docker exec -it dev-rootdb-api bash