Create applicationStart.sh

This commit is contained in:
Chigozirim Igweamaka 2024-05-17 11:55:53 +01:00 committed by GitHub
parent 27ba102eb6
commit f9dac6247a

View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
start_backend() {
go build -tags netgo -ldflags '-s -w' -o app
nohup ./app > backend.log 2>&1 &
echo "Backend started successfully."
}
start_client() {
cd /client
nvm use 16
npm run build
nohup serve -s build > client.log 2>&1 &
echo "Client started successfully."
}
start_backend && start_client