mirror of
https://github.com/Lemonochrme/service-architecture.git
synced 2025-06-08 13:40:50 +02:00
Renamed helpapp-frontend
to frontend
and helpapp-backend
to backend
This commit is contained in:
parent
87829a7766
commit
2da048febf
29 changed files with 7 additions and 7 deletions
4
.github/workflows/main_helpapp.yml
vendored
4
.github/workflows/main_helpapp.yml
vendored
|
@ -23,10 +23,10 @@ jobs:
|
||||||
distribution: 'microsoft'
|
distribution: 'microsoft'
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: cd helpapp-backend && mvn clean install
|
run: cd backend && mvn clean install
|
||||||
|
|
||||||
- name: Upload artifact for deployment job
|
- name: Upload artifact for deployment job
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: java-app
|
name: java-app
|
||||||
path: '${{ github.workspace }}/helpapp-backend/*'
|
path: '${{ github.workspace }}/backend/*'
|
4
init.sh
4
init.sh
|
@ -44,7 +44,7 @@ echo -e $GREEN"Database setup successful!"$RESET
|
||||||
services=()
|
services=()
|
||||||
port=8081
|
port=8081
|
||||||
echo "> Checking Microservices..."
|
echo "> Checking Microservices..."
|
||||||
for dir in helpapp-backend/*-service; do
|
for dir in backend/*-service; do
|
||||||
if [[ -d "$dir" ]]; then
|
if [[ -d "$dir" ]]; then
|
||||||
services+=("$dir")
|
services+=("$dir")
|
||||||
fi
|
fi
|
||||||
|
@ -73,5 +73,5 @@ for service in "${services[@]}"; do
|
||||||
generated_js+="const $modified_name=$port\n"
|
generated_js+="const $modified_name=$port\n"
|
||||||
((port++))
|
((port++))
|
||||||
done
|
done
|
||||||
echo -e "$generated_js" > helpapp-frontend/generated.js
|
echo -e "$generated_js" > frontend/generated.js
|
||||||
echo -e $GREEN"Setup successfull for each microservice !"
|
echo -e $GREEN"Setup successfull for each microservice !"
|
||||||
|
|
|
@ -9,7 +9,7 @@ ports=()
|
||||||
|
|
||||||
list_services() {
|
list_services() {
|
||||||
base_port=8081
|
base_port=8081
|
||||||
cd "$SCRIPT_DIR/helpapp-backend"
|
cd "$SCRIPT_DIR/backend"
|
||||||
for dir in *-service; do
|
for dir in *-service; do
|
||||||
if [[ -d "$dir" ]]; then
|
if [[ -d "$dir" ]]; then
|
||||||
services+=("$dir")
|
services+=("$dir")
|
||||||
|
@ -44,7 +44,7 @@ check_services() {
|
||||||
# Function to start services
|
# Function to start services
|
||||||
start_services() {
|
start_services() {
|
||||||
echo "" > "$SCRIPT_DIR"/process.tmp
|
echo "" > "$SCRIPT_DIR"/process.tmp
|
||||||
cd "$SCRIPT_DIR/helpapp-backend" || exit 1
|
cd "$SCRIPT_DIR/backend" || exit 1
|
||||||
for service in "${services[@]}"; do
|
for service in "${services[@]}"; do
|
||||||
echo "> Starting $service..."
|
echo "> Starting $service..."
|
||||||
mvn spring-boot:run -pl "$service" > /dev/null 2>&1 &
|
mvn spring-boot:run -pl "$service" > /dev/null 2>&1 &
|
||||||
|
@ -74,7 +74,7 @@ elif [ "$1" == "stop" ]; then
|
||||||
list_services
|
list_services
|
||||||
stop_services
|
stop_services
|
||||||
elif [ "$1" == "compile" ]; then
|
elif [ "$1" == "compile" ]; then
|
||||||
cd "$SCRIPT_DIR/helpapp-backend" || exit 1
|
cd "$SCRIPT_DIR/backend" || exit 1
|
||||||
mvn clean install
|
mvn clean install
|
||||||
else
|
else
|
||||||
echo -e $RED"Usage: $0 {compile|start|stop}"$RESET
|
echo -e $RED"Usage: $0 {compile|start|stop}"$RESET
|
||||||
|
|
Loading…
Add table
Reference in a new issue