- Ubuntu 20.04
- Laravel 8
- Docker compose
- PHP 7.4
- MySQL
- Codeception
- Jquery
Copy the .env.example file and make the following changes:
- APP_NAME(Example Olibrary)
- APP_DEBUG(
false
) - DB_USERNAME(Example
root
) - DB_PASSWORD(Example
password
) - DB_HOST(
mysql
) - MAIL_HOST(Example
stmp.mailtrap.io
) - MAIL_PORT(Example
465
) - MAIL_USERNAME(YOUR_USERNAME)
- MAIL_PASSWORD(YOUR_PASSWORD)
- MAIL_ENCRYPTION(Example
TLS
) - MAIL_FROM_ADDRESS(YOUR_ADDRESS)
- QUEUE_CONNECTION(
database
)
chmod 755 -R Olibrary/storage/
To start the containers, execute the command:
docker-compose up --build -d
Next, you need to open the container with PHP.
CONTAINER ID of the container with php:
docker ps
To enter the container, execute the command:
docker exec -it CONTAINER_ID /bin/bash
Execute the following commands in the container:
composer i
php artisan key:generate
php artisan migrate:fresh --seed
php artisan storage:link
- Login, registration;
- Email confirmation, Google login, password reset;
- View books with filters, pagination;
- Adding books to favorites;
- View favorites in your personal account;
- Ability to download the book from the site;
- Changing data in the personal account;
- Admin panel. CRUD Users, Books and Authors.