This is the backend of the Dividend Calculator project. The frontend can be found here
It's a dummy project that I built to learn Nuxt JS, Docker and deployment stuff in general. I came with an idea when I was filling received dividends for keeping companies stocks to excel and I didn't find how to display some statistics. I thought I can make project for it and probably I will finish it unlike other side projects because it would be useful for me.
Any feedback about what might be improved would be appreciated.
- Git clone both frontend and backed repositories into the same folder next to each other like that your_folder/dividends_calculator and your_folder/dividends_calculator_front (if your change folders name then you will have to edit docker-compose file too).
- Navigate to backend project and run
cp .env.example .env
or just rename .env.example to .env - Specify desired database name, username and password (DB_DATABASE, DB_USERNAME, DB_PASSWORD) values in .env
- Run
docker-compose up -d
command in the backend project. It will install both backend and frontend projects. - Run these commands for the backend:
docker exec -it dividends_calculator_web /bin/bash -c "composer install"
docker exec -it dividends_calculator_web /bin/bash -c "php artisan key:generate"
docker exec -it dividends_calculator_web /bin/bash -c "php artisan migrate"
docker exec -it dividends_calculator_web /bin/bash -c "php artisan passport:keys"
docker exec -it dividends_calculator_web /bin/bash -c "php artisan passport:install"
docker exec -it dividends_calculator_web /bin/bash -c "php artisan db:seed"
- Navigate to frontend project and run
cp .env.example .env
or just rename .env.example to .env.