[RUBY] Rails foundation

I have summarized the necessary things when creating a personal application in a programming note, so I will post it on Qiita as well.

OS macOS Catalina version 10.15.7

1 In the terminal cd ~ / the place you want to create (folder name) 2"rails new" 3 "rails db:create" 4 "rails s"

This time, I will describe the labor-saving type.

At the terminal
Your PC name~ % cd ~/Where you want to create(Folder name)

rails _5.2.3_ new my_first_app -d mysql
* For macOS Catalina"$"Is unnecessary.

rails db:create

rails s


"5.2.3" This specifies the version of rails. my_first_app You can choose any name you like, but Insert a "_" (underscore)between words.

"-d mysql" This tells you to create mysql. If you do not create mysql, user registration and posted contents will not be saved, so be sure to create it.

"rails db: create" Here you can specify what kind of things can be saved in the DB. This is also absolutely necessary.

Finally, "rails s" Let's check if this is reflected on your local host.


Let's check if the above picture is displayed when the reflection is completed.

Recommended Posts

Rails foundation
[Rails g.error]
Rails basics
Rails Review 1
Rails API
Rails migration
[Rails] first_or_initialize
rails tutorial
About Rails 6
Rails memorandum
rails tutorial
rails tutorial
rails tutorial
[Rails] devise
rails tutorial
rails tutorial
Rails Tips
rails method
rails tutorial
[Rails] ActiveRecord
[Rails] form_with
Rails Review 2
Rails CSV basics
Rails6 jQuery introduced
About Rails routing
Rails Routing Basics
Add binding.pry (rails)
Rails database basics
Rails access restrictions
Rails and FormData
rails tutorial Chapter 6
Rails tutorial test
Rails render redirect_to
[Rails] Favorite feature
Rails Bootstrap introduced
[Rails] Many-to-many creation
Rails Credentials Note
Rails Logger Basics
[Rails] Introducing jquery
[Rails 6] Ranking function
Rails Flash Message
Tailwind on Rails
rails tutorial Chapter 1
Rails delegate method
[Rails 6] cocoon_ introduction
[Rails] Introduce Carrierwave
Rails tutorial memorandum 1
[rails] Set validation
Rails learning day 3
Rails tutorial memorandum 2
Rails learning day 4
Implement Rails pagination
[Rails] Category function
rails tutorial Chapter 7
[Rails] Introducing devise
rails tutorial Chapter 5
Group_by in Rails
Rails follow function
rails tutorial Chapter 10
Rails 6.0 Routing Summary
[Rails] Extend UrlHelper