본문으로 바로가기

설치 및 MVC 환경 구성

category Studies/RubyonRails 2022. 1. 15. 18:05

공식 홈페이지 Getting Started with Rails — Ruby on Rails Guides 에서 설치 가이드에 따라 

Rails 환경에 필요한 것들을 설치한다.

 

필요한 것들

  • Ruby
  • SQLite3
  • Node.js
  • Yarn

 

VS code 에서 개발을 진행할 때는 VS code의 ruby 플러그인을 설치해 준다.

 

| ruby cmd 명령어

  • 프로젝트 시작 : rails new FirstProject
  • 로컬 서버 구동 : rails s
  • MVC 환경 구성 : rails g controller home index
  • 스캐폴드 구성 : rails g scaffold table_name element1:string element2:string