feat: init project

This commit is contained in:
Steven
2022-09-11 16:38:06 +08:00
commit 5f48be3b7a
48 changed files with 4585 additions and 0 deletions

13
scripts/.air.toml Normal file
View File

@ -0,0 +1,13 @@
root = "."
tmp_dir = ".air"
[build]
bin = "./.air/corgi"
cmd = "go build -o ./.air/corgi ./bin/server/main.go"
delay = 1000
exclude_dir = [".air", "web", "build"]
exclude_file = []
exclude_regex = []
exclude_unchanged = false
follow_symlink = false
full_bin = ""

13
scripts/build.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Usage: ./scripts/build.sh
set -e
cd "$(dirname "$0")/../"
echo "Start building backend..."
go build -o ./build/corgi ./bin/server/main.go
echo "Backend built!"

9
scripts/start.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# Usage: ./scripts/start.sh
set -e
cd "$(dirname "$0")/../"
air -c ./scripts/.air.toml