Anpassen README
parent
b3f12bb04e
commit
e5278442c9
|
@ -5,13 +5,18 @@ Das Repository enthält eine auf [Laravel (Version 10.x)](https://laravel.org) b
|
|||
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`
|
||||
```bash
|
||||
git clone https://gitea.fhgr.ch/dianigionath/ConsultancyProject1_Auslastungsmodellierung.git`
|
||||
```
|
||||
2. Die Applikation mittels Composer installieren
|
||||
`php composer install`
|
||||
```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,6 +24,9 @@ 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? ────────────────────────────────┐
|
||||
|
@ -27,26 +35,28 @@ WARN The SQLite database does not exist: /home/gio/database_test.sqlite.
|
|||
|
||||
INFO Preparing database.
|
||||
|
||||
Creating migration table ............................................................................................................... 31ms DONE
|
||||
Creating migration table .......................................................................... 31ms DONE
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue