Installation
Balance installation and startup process.
Docker
Make sure you have installed Git, Docker and Docker Compose correctly!
After successfully installing Git, Docker and Docker Compose we can move into the newly cloned project and run in two different terminal tabs these two commands:
sudo docker-compose upIf you want to force container's re-creation you can run:sudo docker-compose up --build --force-recreatesudo docker exec -it balance_app bashRun this command only after the containers have been created correctly. balance_app is the name of the main app container.
After accessing the container using the previous command you have to run the commands to install Composer and Node packages:
composer installnpm install
Now run migrations and seeders to create and populate the database:
php artisan migrate:fresh --seed
Finally, run the command to start Vite and load the FE:
npm run docker
To access from the web you need to reach the localhost url with the port specified inside the docker-compose file, default is http://localhost:7987/.
Last updated