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 1 year has passed since last update.

Ruby_Rails_JavaScuript_memoAdvent Calendar 2022

Day 11

アプリ作成(rails ver.6.0.0)

Last updated at Posted at 2022-12-11

Ruby_on_Railsでアプリを作る

[Terminal]
#指定のファイルに移動。(例えば、projectsディレクトリ内でアプリを作成する)
% cd ~/projects

#アプリを作成(データベースはmysqlで作成)
% rails _6.0.0_ new [app_name] -d mysql

#アプリのディレクトリ内に移動
% cd [app_name]
[config/database.yml]
# encoding: utf8mb4 を下記のエンコーディングに設定を変更する
  encoding: utf8
[terminal]
#データベースを作成
% rails db:create

以上のようにターミナル内にてRailsアプリを作成し、この後、MVCモデルを作っていきます。

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?