After cloning the project, run the following command in your terminal to install project dependencies:
composer install
Then you need to create.env
file To determine the environment variables, You can use the following command for this:
cp .example.env .env
Open the .env
file and update the following variables according to your database
DB_CONNECTION=mongodb
DB_HOST=127.0.0.1
DB_PORT=27017
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
Once your credentials are in the .env file, now you can migrate your database.
php artisan migrate
After the migrations are complete and you have the database structure required, then you can seed the database
php artisan db:seed
This project uses Redis for the cache mechanism. Therefore, it is necessary to set the following variables correctly:
CACHE_DRIVER=redis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_CLIENT=predis
To make sure the project is working properly, you can run the tests with the following command:
php artisan test
Enter the following command to run the project:
php artisan serve