- PHP version 8.1
- Laravel version 10
- MySQL version 8.0.32
- Docker and Docker Compose (if used)
- Clone the repository to your local computer:
git clone https://github.com/PavelFesenkoFirst/test-task.git
- Go to the project directory:
cd your-project/test-task/src/posts
- Install dependencies (if necessary):
composer install
-
Create an
.env
environment file and customize it according to your configuration. -
Start the project (if you are using
Docker
):
docker-compose up -d
- Start migrating and populating the database:
php artisan migrate --seed
or
docker-compose exec web bash
them cd posts
and them php artisan migrate:fresh --seed