본문 바로가기

DEVELOPMENT/Ruby on Rails

[Rails] 개요

반응형

Rails란

레일즈는 개발자가 프로그래밍을 시작할 때 필요한 초기 준비나 가정들을 쉽게 만들수 있는 도구를 제공해 웹 애플리케이션 프로그래밍을 더 쉽게 진행하도록 돕는다. 레일즈 공식 홈페이지엔 “레일즈는 다른 언어와 프레임워크에 비해서 더 적은 코드로 작성된다” 라고 소개돼 있다

 

rails 를 설치하게 되면 아래의 폴더들이 저절로 설치되게 되고, 그 폴더의 역할을 아래와 같다.

 

File/Folder Purpose
app/ Contains the controllers, models, views, helpers, mailers, channels, jobs and assets for your application. You'll focus on this folder for the remainder of this guide.
bin/ Contains the rails script that starts your app and can contain other scripts you use to setup, update, deploy or run your application.
config/ Configure your application's routes, database, and more. This is covered in more detail in Configuring Rails Applications.
config.ru Rack configuration for Rack based servers used to start the application.
db/ Contains your current database schema, as well as the database migrations.
Gemfile
Gemfile.lock
These files allow you to specify what gem dependencies are needed for your Rails application. These files are used by the Bundler gem. For more information about Bundler, see the Bundler website.
lib/ Extended modules for your application.
log/ Application log files.
public/ The only folder seen by the world as-is. Contains static files and compiled assets.
Rakefile This file locates and loads tasks that can be run from the command line. The task definitions are defined throughout the components of Rails. Rather than changing Rakefile, you should add your own tasks by adding files to the lib/tasks directory of your application.
README.md This is a brief instruction manual for your application. You should edit this file to tell others what your application does, how to set it up, and so on.
test/ Unit tests, fixtures, and other test apparatus. These are covered in Testing Rails Applications.
tmp/ Temporary files (like cache and pid files).
vendor/ A place for all third-party code. In a typical Rails application this includes vendored gems.
.gitignore This file tells git which files (or patterns) it should ignore. See Github - Ignoring files for more info about ignoring files.

 

 

http://rubyonrails.org/ 

 

Ruby on Rails

A web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

rubyonrails.org

 

반응형

'DEVELOPMENT > Ruby on Rails' 카테고리의 다른 글

[Ruby] 개요  (0) 2017.01.23