-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Smeagol lokal starten | ||
Im folgenden wird beschrieben, wie Smeagol lokal ausgeführt werden kann. | ||
Dennoch ist dafür ein lokales EcoSystem mit einem lauffähigen SCM-Manager notwendig. | ||
Außerdem muss der CAS in die development-Stage gebracht werden. | ||
Dafür folgendes ausführen: `etcdctl set config/_global/stage development && docker restart cas` | ||
|
||
|
||
## 1. Frontend starten | ||
* Sicherstellen dass die installierte Node-Version kleiner als 18 ist. Mit Node 16 wurde es erfolgreich getestet. | ||
* Aus dem Root-Ordner des Repositories folgendes ausführen: `node src/main/scripts/start.js` | ||
|
||
|
||
## 2. Backend starten | ||
* Beim SCM-Manager ein API-Token erstellen: `https://192.168.56.2/scm/me/settings/apiKeys` | ||
* Den API-Key kopieren und in die application.yml unter `src/main/resources` eintragen | ||
|
||
Beispiel: | ||
``` | ||
scm: | ||
url: https://192.168.56.2/scm | ||
accessKey: eyJhcGlLZXlJZCI6IjVFVFp5ZUNlckEiLCJ1c2VyIjoiYWRtaW4iLCJwYXNzcGhyYXNlIjoieDFodXliWkhIaWpuTnNoNFlqQngifQ | ||
``` | ||
|
||
* Mit `./mvwnw spring-boot:run` bzw `mvn spring-boot:run` Smeagol starten - Applikation läuft nun. | ||
* Alternativ kann Smeagol auch einfach über die IDE gestartet werden. Die Konfiguration dafür sollte automatisch angelegt worden sein. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Start Smeagol locally | ||
The following describes how to run Smeagol locally. | ||
However, this requires a local EcoSystem with a running SCM manager. | ||
In addition, the CAS must be brought into the development stage. | ||
To do this, execute the following: `etcdctl set config/_global/stage development && docker restart cas`. | ||
|
||
|
||
## 1. start frontend | ||
* Make sure that the installed node version is lower than 18. With Node 16 it was tested successfully. | ||
* From the root folder of the repository execute: `node src/main/scripts/start.js`. | ||
|
||
|
||
## 2. start backend | ||
* Create an API token at the SCM manager: `https://192.168.56.2/scm/me/settings/apiKeys`. | ||
* Copy the API key and add it to the application.yml under `src/main/resources`. | ||
|
||
Example: | ||
``` | ||
scm: | ||
url: https://192.168.56.2/scm | ||
accessKey: eyJhcGlLZXlJZCI6IjVFVFp5ZUNlckEiLCJ1c2VyIjoiYWRtaW4iLCJwYXNzcGhyYXNlIjoieDFodXliWkhIaWpuTnNoNFlqQngifQ | ||
``` | ||
|
||
* Start Smeagol with `./mvwnw spring-boot:run` or `mvn spring-boot:run` - application is now running. | ||
* Alternatively, Smeagol can also be started simply via the IDE. The configuration for this should have been created automatically. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters