New-site/README.md
Dhaverd 6411058c45
Some checks failed
Gitea Actions / Build and deploy (push) Has been cancelled
Написал Readme по установке
2024-04-21 14:55:15 +08:00

45 lines
883 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Установка
## 1. Клонируем проект с гита
```
git clone http://gitea.dhaverd.ru:3000/Dhaverd/New-site.git
```
## 2. Устанавливаем зависимости
```
npm i
composer install
```
## 3. Мигрируем бд
```
php artisan migrate
```
## 4. Устанавливаем Voyager
```
php artisan voyager:install
php artisan voyager:admin your@email.com --create
php artisan vendor:publish --provider="TCG\Voyager\VoyagerServiceProvider"
php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravelRecent"
php artisan migrate
```
## 5. Пишем .env по примеру
Главное это настроить подключение к БД:
```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
```
## 6. Билдим фронт
```
npm run build
```