YouTubeSyncServer

YouTubeSyncのサーバ用リポジトリです。

必要環境

Xcode Command line tools

AppStoreからXcodeをインストールし、以下のコマンドを実行する。

xcode-select --install

Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

rbenv

brew update
brew install rbenv ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

Ruby 2.4.1

rbenv install 2.4.1

Ruby on rails 5.1.2

gem install rails -v 5.1.2

bundler

gem install bundler

mysql

brew install mysql

editorconfig plugin

ここからエディタに合わせたものをインストールすること。

セットアップ

  1. 次のコマンドを実行する。
git@github.com:Mori-Atsushi/YouTubeSyncServer.git
cd YouTubeSyncServer
  1. Gemライブラリをインストールする
bundle install --path=vendor/bundle
  1. MySqlを起動する
mysql.server start
  1. Databaseを作成する
rails db:create
rails db:migrate
rails db:seed
  1. サーバを起動する
rails server

著者