0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ruby on Rails プロジェクトを作成 勉強用

Last updated at Posted at 2021-06-12

デスクトップに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
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?