Anpassen README
parent
b3f12bb04e
commit
e5278442c9
|
@ -4,14 +4,19 @@ Das Repository enthält eine auf [Laravel (Version 10.x)](https://laravel.org) b
|
||||||
## Installation
|
## Installation
|
||||||
Vorbedingungen für die erfolgreiche Installation sind [Server Requirements](https://laravel.com/docs/10.x/deployment#server-requirements)
|
Vorbedingungen für die erfolgreiche Installation sind [Server Requirements](https://laravel.com/docs/10.x/deployment#server-requirements)
|
||||||
|
|
||||||
1. Das Repository klonen
|
1. Das Repository klonen
|
||||||
`git clone https://gitea.fhgr.ch/dianigionath/ConsultancyProject1_Auslastungsmodellierung.git`
|
```bash
|
||||||
2. Die Applikation mittels Composer installieren
|
git clone https://gitea.fhgr.ch/dianigionath/ConsultancyProject1_Auslastungsmodellierung.git`
|
||||||
`php composer install`
|
```
|
||||||
|
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.
|
3. Eine Kopie der Datei .env.example nach .env erstellen und den Dateiinhalt bez. Datenbankverbindung anpassen.
|
||||||
```bash
|
```bash
|
||||||
cp .env.example .env`
|
cp .env.example .env`
|
||||||
```
|
```
|
||||||
|
Bsp. für Verbinung zu einer SQLite Datenbank.
|
||||||
```yaml
|
```yaml
|
||||||
DB_CONNECTION=sqlite
|
DB_CONNECTION=sqlite
|
||||||
DB_DATABASE=/absolute/path/to/database.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
|
4. Mittels Artisan Console die Datenbank initialisieren
|
||||||
```bash
|
```bash
|
||||||
php artisan migrate
|
php artisan migrate
|
||||||
|
```
|
||||||
|
Erwartete Ausgabe:
|
||||||
|
```bash
|
||||||
WARN The SQLite database does not exist: /home/gio/database_test.sqlite.
|
WARN The SQLite database does not exist: /home/gio/database_test.sqlite.
|
||||||
|
|
||||||
┌ Would you like to create it? ────────────────────────────────┐
|
┌ Would you like to create it? ────────────────────────────────┐
|
||||||
│ Yes │
|
│ 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_000000_create_users_table .......................................................................... 57ms DONE
|
||||||
0001_01_01_000001_create_cache_table ................................................................................................... 18ms DONE
|
0001_01_01_000001_create_cache_table .......................................................................... 18ms DONE
|
||||||
2019_12_14_000001_create_personal_access_tokens_table .................................................................................. 36ms DONE
|
2019_12_14_000001_create_personal_access_tokens_table .......................................................................... 36ms DONE
|
||||||
2024_03_15_142227_create_regions_table ................................................................................................. 10ms DONE
|
2024_03_15_142227_create_regions_table .......................................................................... 10ms DONE
|
||||||
2024_03_15_142228_create_seeds_table ................................................................................................... 18ms DONE
|
2024_03_15_142228_create_seeds_table .......................................................................... 18ms DONE
|
||||||
2024_03_15_142257_create_properties_table .............................................................................................. 17ms DONE
|
2024_03_15_142257_create_properties_table .......................................................................... 17ms DONE
|
||||||
2024_03_15_142550_create_extractions_table ............................................................................................. 10ms DONE
|
2024_03_15_142550_create_extractions_table .......................................................................... 10ms DONE
|
||||||
2024_03_15_142625_create_exceptions_table .............................................................................................. 10ms DONE
|
2024_03_15_142625_create_exceptions_table .......................................................................... 10ms DONE
|
||||||
2024_03_15_162023_create_jobs_table .................................................................................................... 18ms DONE
|
2024_03_15_162023_create_jobs_table .......................................................................... 18ms DONE
|
||||||
2024_04_08_115153_create_failed_jobs_table ............................................................................................. 32ms 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
|
```bash
|
||||||
php artisan scraper:add-region
|
php artisan scraper:add-region
|
||||||
|
```
|
||||||
|
Mögliche erwartete Ausgabe:
|
||||||
|
```bash
|
||||||
Type in desired region:
|
Type in desired region:
|
||||||
> Davos
|
> Davos
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue