デスクトップにrubyディレクトリを作成
rubyディレクトリに移動
mkdir Desktop/ruby
cd Desktop/ruby
rubyのバージョンを2.6.3に指定
※ディレクトリ内でバージョンを指定
※バージョンが違うとエラーになる
rbenv local 2.6.3
プロジェクトを作成
# rails new プロジェクト名
rails new project
プロジェクト先に移動
# cd プロジェクト名
cd project
railsのサーバーを立ち上げる
rails s
railsのサーバーを停止
Controlle + c
プロジェクトURL
http://localhost:3000/
vsCodeでプロジェクトを開く
code .
Gemfileのファイルにインストールするgemを記載して保存
# ログイン機能
gem 'devise'
gem 'refile',require: 'refile/rails',github: 'manfe/refile'
gem 'refile-mini_magick'
# スタイル
gem 'bulma-rails'
Gemfileの変更を適用
bundle install