アニメのOPとEDをまとめた情報サイト(の予定)
(現在、AWSに構築中)
(現在、herokuに構築中)
Slack使ってます。ご興味ある方は、@kae_kasuiまで。
- Ruby 2 系
- 詳細なバージョンは
.ruby-version
またはGemfile
のruby
を確認
- 詳細なバージョンは
- Rails 5 系
- 詳細なバージョンは、
Gemfile
を確認
- 詳細なバージョンは、
基本的に、バージョンは最新のものを採用します。
ReactJSを使用
- Ruby
- 基本的にはrubocop
CIについて、キーワードは以下です。 詳細は、リポジトリの設定ファイル等で確認できます。
- Github
- CircleCI
- Slack
- heroku
- RSpec
- features(Capybara)
- requests
- models
テストのカバレッジは、CI結果通知とともにgithubのPR画面にて確認できます
- Comman line toolsをインストール
xcode-select --install
- Homebrewをインストール
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
この後インストールするパッケージについて、時々アップデートが必要になります。
brew update
brew upgrade rbenv
brew upgrade ruby-build
- rbenv等パッケージのインストール
好みで、rbenv-gemsetも入れると便利です。
brew install rbenv
brew install ruby-build
brew install npm
brew install postgres
echo 'eval #$(rbenv init -)"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
- rbenvでインストールできるRubyのバージョンを確認
rbenv install -l
- rbenvでRubyをインストール
プロジェクトで使用しているバージョンをインストールします
rbenv install 2.3.1
rbenv rehash
- ソースコードを入手
git clone https://github.com/summer-snowflake/anime-music.git
- Rails及びgemをインストール
cd anime-music
gem install bundle
bundle // bundle install の略
- 各種nodeパッケージのインストール
npm install
- DBの構築
rails db:create
rails db:migrate
rails db:seed // 現在のところは不要
- public以下の構築(productionの場合)
bundle exec rake assets:precompile
- サーバーの起動
bin/rails s
- サーバーの起動(productionの場合)
bin/rails s -e production
- (Webpackを使用する場合)
app/assets/stylesheets/application.scss
の@import
行をコメントアウトし、
npm run start:dev
でdevelopment環境、
npm run start:prod
でproduction環境が立ち上がります。