Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcsunset/thuai-defenseofsky
https://github.com/dcsunset/thuai-defenseofsky
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dcsunset/thuai-defenseofsky
- Owner: DCsunset
- License: agpl-3.0
- Created: 2020-02-28T14:04:05.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T01:46:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T08:55:03.385Z (about 2 months ago)
- Language: C++
- Size: 12.4 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING.md
Awesome Lists containing this project
README
# THUAI DefenseOfSky
[![Build Status](https://travis-ci.com/DCsunset/THUAI-DefenseOfSky.svg?token=GcJo7cdxZitoWy9qXz8p&branch=master)](https://travis-ci.com/DCsunset/THUAI-DefenseOfSky)
Botany is a customizable contest platform for games among programs.
## Development tools for jury and participants
See [README in sdk/ directory](sdk/README.md).
## Running the server
Tested Go version: 1.13.1, 1.13.7
Clone repository into `$GOPATH/src/github.com/DCsunset/THUAI-DefenseOfSky`, or create a symlink, whichever works.
Set up PostgresQL and Redis server (refer to documentations for the target platform).
```sh
cd app
go get -d .cp config_sample.json config.json
vim config.json # Edit in any convenient waygo run .
```In case of unstable connection, use [goproxy.io](https://goproxy.io/) or try:
```sh
mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x/
git clone https://github.com/golang/crypto
git clone https://github.com/golang/image
git clone https://github.com/golang/sys
```## Running the frontend
Install Node.js first.
```sh
cd app/views
npm install
npm run dev
```## Running the judge
The judge runs on Linux only.
See [judge/box.md](judge/box.md) for details.
## Standards and conventions
Run the code through Gofmt before committing. Not doing so will result in CI complaining.
```sh
gofmt -w .
```Vim users may consider adding the following to `~/.vimrc` so that indentation rules (`noexpandtab ts=4 sw=4`) apply inside `app/` directory.
```vimrc
:set exrc
:set secure
```