diff --git a/config_monolith.conf b/config_monolith.conf index b921426..2229050 100644 --- a/config_monolith.conf +++ b/config_monolith.conf @@ -20,5 +20,5 @@ every = "5m" after = "30m" [microservice_dependencies] -product = "http://localhost:8080/api-test/product/%d/" -permission = "http://localhost:8080/api-test/session/%s/%d/" +product = "http://localhost:65000/api-test/product/%d/" +permission = "http://localhost:65000/api-test/session/%s/%d/" diff --git a/documentation/microservice_stock/chapter/GettingStarted.tex b/documentation/microservice_stock/chapter/GettingStarted.tex index 485488b..a6cd1f4 100644 --- a/documentation/microservice_stock/chapter/GettingStarted.tex +++ b/documentation/microservice_stock/chapter/GettingStarted.tex @@ -1,7 +1,17 @@ \section{Getting Started} \label{sec: Getting Started} -Um den Microservice zu starten, muss die folgende Befehlszeile in dem Hauptverzeichnis des Microservice aufgerufen werden. -\begin{lstlisting}[caption=Getting Started] +\subsection{Installation von Go} +In Abhängigkeit von dem Betriebssystem, gibt es verschiedene Ansätze, die Programmiersprache Go auf einem System zu installieren. Eine Anleitung für die Installation unter Linux, Windows und Mac ist unter dem Link \texttt{https://golang.org/doc/install} zu finden. Damit alle Abhängigkeiten des Microservices Warenwirtschaft auch auf dem System bereitstehen, sind diese -- über die Ausführung der folgenden Befehlszeile im Root-Verzeichnis des Microservices -- zu laden. +\begin{lstlisting}[caption=Laden der Abhängigkeiten] +go get ./... +\end{lstlisting} + +\subsection{Start des Microservice} +Um den Microservice Warenwirtschaft zu starten, muss die folgende Befehlszeile unter dem Root-Verzeichnis des Microservice ausgeführt werden. Anschließend wird der Microservice unter \texttt{http://localhost:65000/} bereitgestellt. +\begin{lstlisting}[caption=Start des Go-Microservice] go run main.go \end{lstlisting} + +\subsection{Start des Microservice} +Der angepasste Monolith wird entsprechend der Anleitung unter \texttt{https://gitlab.com/matthiasstock/monolith} gestartet. \ No newline at end of file diff --git a/models/good.go b/models/good.go index eceb256..976bc57 100644 --- a/models/good.go +++ b/models/good.go @@ -10,7 +10,7 @@ import ( "github.com/genofire/hs_master-kss-monolith/lib/database" ) -// Goods managemd in this stock microservice +// Goods managed in this stock microservice type Good struct { ID int64 ProductID int64