Splitting design into separate services

This commit is contained in:
Brandon Watson
2023-08-10 13:14:38 -05:00
parent 2f149f2c6d
commit 54c2632cec
15 changed files with 699 additions and 235 deletions

17
scripts/build Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
GIT_ROOT=$(git rev-parse --show-toplevel)
GIT_COMMIT=$(git rev-list -1 HEAD)
pushd ${GIT_ROOT}
echo "Rebuilding services..."
mkdir -p bin
for svc in front character item inventory; do
go build -o bin/${svc} crossnokaye-interview-assignment/services/${svc}/cmd/${svc}
done
popd

17
scripts/clean Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
GIT_ROOT=$(git rev-parse --show-toplevel)
GIT_COMMIT=$(git rev-list -1 HEAD)
pushd ${GIT_ROOT}
echo "Rebuilding services..."
mkdir -p bin
for svc in front character item inventory; do
rm -rf services/${svc}/gen services/${svc}/cmd services/${svc}/gen services/${svc}/*.go
done
popd

17
scripts/example Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
GIT_ROOT=$(git rev-parse --show-toplevel)
GIT_COMMIT=$(git rev-list -1 HEAD)
pushd ${GIT_ROOT}
echo "Rebuilding services..."
mkdir -p bin
for svc in front character item inventory; do
goa example crossnokaye-interview-assignment/services/${svc}/design -o services/${svc}
done
popd