full stack second commit
This commit is contained in:
22
scripts/dev-all.sh
Executable file
22
scripts/dev-all.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Starting supporting services with Docker Compose..."
|
||||
docker-compose up -d db nextcloud collabora
|
||||
|
||||
echo "Starting backend..."
|
||||
./scripts/dev-backend.sh &
|
||||
BACKEND_PID=$!
|
||||
|
||||
echo "Starting frontend..."
|
||||
./scripts/dev-frontend.sh &
|
||||
FRONTEND_PID=$!
|
||||
|
||||
echo "All services started. Press Ctrl+C to stop."
|
||||
|
||||
trap "kill $BACKEND_PID $FRONTEND_PID; docker-compose down" INT
|
||||
|
||||
wait
|
||||
15
scripts/dev-backend.sh
Executable file
15
scripts/dev-backend.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
cd go_cloud
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
cp .env.example .env
|
||||
echo "Copied .env.example to .env. Please edit it with your settings."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go run ./cmd/api
|
||||
11
scripts/dev-frontend.sh
Executable file
11
scripts/dev-frontend.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
cd b0esche_cloud
|
||||
|
||||
flutter pub get
|
||||
|
||||
flutter run -d web-server --web-port 3000
|
||||
Reference in New Issue
Block a user