Anpassen README

main
Giò 2024-07-06 19:44:40 +02:00
parent b3f12bb04e
commit e5278442c9
1 changed files with 29 additions and 19 deletions

View File

@ -4,14 +4,19 @@ Das Repository enthält eine auf [Laravel (Version 10.x)](https://laravel.org) b
## Installation
Vorbedingungen für die erfolgreiche Installation sind [Server Requirements](https://laravel.com/docs/10.x/deployment#server-requirements)
1. Das Repository klonen
`git clone https://gitea.fhgr.ch/dianigionath/ConsultancyProject1_Auslastungsmodellierung.git`
2. Die Applikation mittels Composer installieren
`php composer install`
1. Das Repository klonen
```bash
git clone https://gitea.fhgr.ch/dianigionath/ConsultancyProject1_Auslastungsmodellierung.git`
```
2. Die Applikation mittels Composer installieren
```bash
php composer install
```
3. Eine Kopie der Datei .env.example nach .env erstellen und den Dateiinhalt bez. Datenbankverbindung anpassen.
```bash
cp .env.example .env`
```
Bsp. für Verbinung zu einer SQLite Datenbank.
```yaml
DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/database.sqlite
@ -19,34 +24,39 @@ DB_DATABASE=/absolute/path/to/database.sqlite
4. Mittels Artisan Console die Datenbank initialisieren
```bash
php artisan migrate
```
Erwartete Ausgabe:
```bash
WARN The SQLite database does not exist: /home/gio/database_test.sqlite.
┌ Would you like to create it? ────────────────────────────────┐
│ Yes │
└──────────────────────────────────────────────────────────────┘
INFO Preparing database.
INFO Preparing database.
Creating migration table ............................................................................................................... 31ms DONE
Creating migration table .......................................................................... 31ms DONE
INFO Running migrations.
INFO Running migrations.
0001_01_01_000000_create_users_table ................................................................................................... 57ms DONE
0001_01_01_000001_create_cache_table ................................................................................................... 18ms DONE
2019_12_14_000001_create_personal_access_tokens_table .................................................................................. 36ms DONE
2024_03_15_142227_create_regions_table ................................................................................................. 10ms DONE
2024_03_15_142228_create_seeds_table ................................................................................................... 18ms DONE
2024_03_15_142257_create_properties_table .............................................................................................. 17ms DONE
2024_03_15_142550_create_extractions_table ............................................................................................. 10ms DONE
2024_03_15_142625_create_exceptions_table .............................................................................................. 10ms DONE
2024_03_15_162023_create_jobs_table .................................................................................................... 18ms DONE
2024_04_08_115153_create_failed_jobs_table ............................................................................................. 32ms DONE
0001_01_01_000000_create_users_table .......................................................................... 57ms DONE
0001_01_01_000001_create_cache_table .......................................................................... 18ms DONE
2019_12_14_000001_create_personal_access_tokens_table .......................................................................... 36ms DONE
2024_03_15_142227_create_regions_table .......................................................................... 10ms DONE
2024_03_15_142228_create_seeds_table .......................................................................... 18ms DONE
2024_03_15_142257_create_properties_table .......................................................................... 17ms DONE
2024_03_15_142550_create_extractions_table .......................................................................... 10ms DONE
2024_03_15_142625_create_exceptions_table .......................................................................... 10ms DONE
2024_03_15_162023_create_jobs_table .......................................................................... 18ms DONE
2024_04_08_115153_create_failed_jobs_table .......................................................................... 32ms DONE
```
5. Gewünschte Region(en) mittels Artisan Konsole hinzufügen.
5. Gewünschte Region(en) mittels Artisan Konsole hinzufügen:
```bash
php artisan scraper:add-region
```
Mögliche erwartete Ausgabe:
```bash
Type in desired region:
> Davos