Skip to content

ShanghaitechGeekPie/coursebench-backend

Repository files navigation

coursebench-backend

The backend service of GeekPie_CourseBench.

Build

  • Install Go
  • Install Docker
  • Install Docker-Compose
git clone [email protected]:ShanghaitechGeekPie/coursebench-backend.git
cd coursebench-backend
mkdir bin
go build -o bin/coursebench-backend ./cmd/coursebench-backend/
go build -o bin/cmd_tools ./cmd/cmd_tools/

If you are using Windows, then the two build instruction should be

go build -o bin/coursebench-backend.exe ./cmd/coursebench-backend/
go build -o bin/cmd_tools.exe ./cmd/cmd_tools/

Configure

cp config.json.example config.json

Edit config.json as you like.

Edit files in build directory as you like.

Import data (optional)

bin/cmd_tools import_course <course data path>

Run

cd build
docker-compose up -d
cd ..
./bin/coursebench-backend

If you are using Windows, the last instruction should be

./bin/coursebench-backend.exe

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published