Installation

Balance installation and startup process.

Docker

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 up If you want to force container's re-creation you can run: sudo docker-compose up --build --force-recreate

  • sudo docker exec -it balance_app bash Run 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 install

  • npm 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