Before you start, make sure you have the following prerequisites installed on your system:
- PHP (Version 7.4 or later)
- Composer
- Laravel (Version 8.x)
- MySQL or any other compatible database system
- Docker
-
Clone the repository to your local machine:
git clone https://github.com/JavierTibi/beeping
-
Navigate to the project folder:
cd beeping
-
Install project dependencies using Composer:
composer install
-
Create a copy of the
.env.example
file and name it.env
. Update the configuration settings in the.env
file to match your local environment. Be sure to set the database connection details. -
Generate an application key:
php artisan key:generate
-
Migrate the database to create the necessary tables:
php artisan migrate
-
Seed the database to add sample data (if you have created seeders):
php artisan db:seed
Use docker.sh script to start the project:
sh docker.sh up
Access the docker container and start the queue
sh docker.sh ssh
php artisan queue:work
Run the command to get the total orders
php artisan orders:total
Open a web browser and access the site
http://localhost:8095