Skip to content

shiotomo/codecandy

Repository files navigation

CodeCandy

CircleCI

このアプリについて(About this application)

プログラミング教育支援システムです。 オンラインコンパイラとして使えます。 エディタも搭載してあるので、このアプリ1つでプログラミングが始められます。

(It is a programming education support system. It can be used as an online compiler. Since editor is also equipped, programming can be started with this one application.)

対応言語(Supported language)

  • C (gcc)
  • C (clang)
  • C++
  • Ruby
  • Python3
  • Golang
  • Node.js
  • Java
  • Scala
  • Swift
  • PHP
  • Perl
  • Bash
  • Lua
  • Haskell
  • Pascal
  • TypeScript

使用技術(Requirements)

  • ruby 2.6.0
  • rails 5.1.7
  • yarn 1.13.0
  • docker 18.09.1
  • docker-compose 1.23.2
  • typescript 3.2.2
  • postgresql
  • redis

使い方(How to use)

.env

cp .env.sample .env

データベースのホスト、ロールのパスワード、redisサーバのホスト、 TwitterとGitHubとGoogleのAPIキーを.envに設定 (Set Database Host, Role password, Redis Server Host, Twitter, GitHub and Google API key to .env)

docker

docker-compose build

PostgreSQL

roleの作成(Create role)

create role code_candy with createdb login password '<PASSWORD>';

パスワードはdocker-compose.ymlPOSTGRES_PASSWORDに指定したもの。

Rails

bundle install -j4 --path vendor/bundle
bundle exec rails db:setup

yarn

yarn install

Run

bundle exec foreman start

LICENSE

MIT