To install and set up the application using Laravel Sail, follow these steps:
git clone https://github.com/0grre/plusquepro-tmdb-app-jbloup-test.git
cd plusquepro-tmdb-app-jbloup-test
Copy the .env.example file to .env:
cp .env.example .env
Execute the install.sh script to automate the setup process:
chmod +x install.sh
./install.sh
This script will:
- Start Laravel Sail containers in detached mode.
- Install npm dependencies and compile assets for development.
- Generate a Laravel application key.
- Run database migrations.
- Populate the database with initial data using the
artisan database:populate
command.
The artisan database:populate
command supports an optional time window argument:
- day: Populate data relevant for the current day.
- week: Populate data relevant for the current week.
Specify the desired time window according to your application’s needs.
Example:
sail artisan database:populate day
Once the installation is complete, you can access your application at http://localhost.
the credentials for the admin user are:
- email: [email protected]
- password: 1234qwer
in .env.example
[email protected]
BO_PASSWORD=1234qwer