A demo project with Laravel 8 and Laravel Excel package, to import CSV file. You can import horoscopes data through a csv file (format: number | horoscope | date_of_birth | sign). You can enter the date of birth and get the list of all the daily horoscopes of the corresponding zodiac sign, paginated and sorted by date (from the most recent to the oldest).
Clone this project.
git clone https://github.com/andreaadinolfi/horoscopes.git
Navigate to the project folder.
cd horoscopes
Run the sh build script OR follow the next steps manually.
chmod +x ./build.sh
sh ./build.sh
Install required packages.
composer install
create new .env file and edit database credentials there.
cp .env.example .env
Generate new app key.
php artisan key:generate
Run docker containers
docker-compose up -d
optimize and clear cache
php artisan config:cache
php artisan optimize:clear
Run migrations and seeders
./vendor/bin/sail artisan migrate:fresh --seed