松江Ruby会議08 プログラミングコンテスト環境
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
data
db
lib
log
public
scripts
solver_runner
test
tmp
vendor/assets
.dockerignore
.gitignore
.travis.yml
Dockerfile
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
appspec.yml
bitbucket-pipelines.yml
codedeploy_deploy.py
config.ru
docker-compose.yml
package.json

README.md

Maze solver collector

Requirements

We tested on:

  • Ruby 2.3.3
  • Docker 1.12.3

Setup

Setup Docker Image to run posted solvers.

$ docker build -t solver_runner solver_runner/

Setup server.

$ bundle
$ cp -avi config/database.yml{.example,}
$ editor config/database.yml
<set your database settings.>
$ bin/rails db:create:all
$ bin/rails db:migrate
$ bin/rails maze:import MAZE_PATH="data/**/01.maze"

Run test.

$ bin/rake

Enjoy

Run solver runner.

$ bin/delayed_job start

Run web server.

$ bin/rails s

Open http://localhost:3000/solvers on your web browser and enjoy it!