LoginSignup
8
6

More than 5 years have passed since last update.

カードゲームを作る その2(サーバ側:Railsプロジェクト立ち上げ)

Last updated at Posted at 2016-01-19

この記事は

とあるカードゲームが非常に面白く、
そのゲームの見た目クローンを作ろうと一人のプログラマーが奮闘していくブログのような記事です。

その1の続き

今回の参考サイト:
RAILSCASTS
RailsでAPI開発する前に知っておくべき4つのこと
上記サイトを元にプロジェクトの立ち上げをしました。
まずはrails-apiをインストールから始まって諸々準備していく。

インストール

$ gem install rails-api
$ gem install prmd

プロジェクトの作成

Urakataプロジェクト(仮)を作成

$ rails-api new Urakata

データベース設定

config/database.yml
default: &default
  adapter: sqlite3
  pool: 5
  timeout: 5000

development:
  <<: *default
  database: db/development.sqlite3

test:
  <<: *default
  database: db/test.sqlite3
8
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6