All Projects → yasslab → Sample_apps

yasslab / Sample_apps

Licence: mit
Railsチュートリアルの各章が終わった状態を集めたリポジトリです。

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Sample apps

Activerecord Postgres enum
Integrate PostgreSQL's enum data type into ActiveRecord's schema and migrations.
Stars: ✭ 227 (-5.42%)
Mutual labels:  rails
File validators
Adds file validators to ActiveModel.
Stars: ✭ 235 (-2.08%)
Mutual labels:  rails
Docker Registry Browser
🐳 Web Interface for the Docker Registry HTTP API V2 written in Ruby on Rails.
Stars: ✭ 239 (-0.42%)
Mutual labels:  rails
Graphql Ruby
GraphQL Ruby example for How To GraphQL
Stars: ✭ 231 (-3.75%)
Mutual labels:  rails
Genki Study Resources
A collection of exercises for practicing what is taught in Genki: An Integrated Course in Elementary Japanese.
Stars: ✭ 232 (-3.33%)
Mutual labels:  japanese
Api on rails
Learn best practices to build an API using Ruby on Rails 5/6
Stars: ✭ 236 (-1.67%)
Mutual labels:  rails
Postfacto
Self-hosted retro tool aimed at helping remote teams
Stars: ✭ 224 (-6.67%)
Mutual labels:  rails
Rack Reducer
Declaratively filter data via URL params, in any Rack app, with any ORM.
Stars: ✭ 241 (+0.42%)
Mutual labels:  rails
Stimulus Components
A modern Stimulus library delivering common JavaScript behaviors with a bunch of customizable controllers.
Stars: ✭ 234 (-2.5%)
Mutual labels:  rails
Pykakasi
NLP: Convert Japanese Kana-kanji sentences into Kana-Roman in simple algorithm.
Stars: ✭ 238 (-0.83%)
Mutual labels:  japanese
Operationcode old site
Our open source website. We're on a mission to help the military community learn software development, enter the tech industry, and code the future.
Stars: ✭ 231 (-3.75%)
Mutual labels:  rails
Client side validations
Client Side Validations made easy for Ruby on Rails
Stars: ✭ 2,589 (+978.75%)
Mutual labels:  rails
Generate
A new command line tool and developer framework for scaffolding out GitHub projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.
Stars: ✭ 238 (-0.83%)
Mutual labels:  rails
Simpleams
Fast modern plain Ruby serializers using zero dependencies
Stars: ✭ 230 (-4.17%)
Mutual labels:  rails
Core
🔞 JAVClub - 让你的大姐姐不再走丢
Stars: ✭ 2,728 (+1036.67%)
Mutual labels:  japanese
Zammad
Zammad is a web based open source helpdesk/customer support system
Stars: ✭ 2,814 (+1072.5%)
Mutual labels:  rails
Himl
HTML-based Indented Markup Language for Ruby
Stars: ✭ 236 (-1.67%)
Mutual labels:  rails
Jsonapi Rails
Rails gem for fast jsonapi-compliant APIs.
Stars: ✭ 242 (+0.83%)
Mutual labels:  rails
Wreeto official
Wreeto is an open source note-taking, knowledge management and wiki system.
Stars: ✭ 241 (+0.42%)
Mutual labels:  rails
Gaffe
💥 Gaffe handles Rails error pages in a clean, simple way.
Stars: ✭ 238 (-0.83%)
Mutual labels:  rails

Railsチュートリアル_バナー画像

Rails チュートリアル sample_app コード集

Railsチュートリアルの各章が終わった状態を集めたリポジトリです。

『Railsチュートリアルって何?』という方は公式YouTubeチャンネルをご参照ください 📺 ✨

Sample App の開発途中でエラーの原因がどうしても分からないときや、Railsチュートリアル解説動画を視聴するときなどにご活用ください。(解説動画はお試し視聴もできます)

各章とディレクトリ名の対応関係

対応しているRailsのバージョン毎にディレクトリを分けております。具体的な対応関係は次のとおりです。

上記の各ディレクトリの中に 各章が終わった状態の sample_app を置いています。例えば 5_1_2 ディレクトリの場合は、次のようになります。

  • ch01: 第1章が終わった状態
  • ch02: 第2章が終わった状態
  • ch03: 第3章が終わった状態
  • ch04: 第4章が終わった状態
  • ch05: 第5章が終わった状態
  • ch06: 第6章が終わった状態
  • ch07: 第7章が終わった状態
  • ch08: 第8章が終わった状態
  • ch09: 第9章が終わった状態
  • ch10: 第10章が終わった状態
  • ch11: 第11章が終わった状態
  • ch12: 第12章が終わった状態
  • ch13: 第13章が終わった状態
  • ch14: 第14章が終わった状態

なお、各章の演習の結果や、高度なセットアップなどについては反映されておりません。

アプリを動かす方法

例)第6版の11章を動かす

  1. 本リポジトリをクローンし、該当のディレクトリへ移動します。
$ git clone https://github.com/yasslab/sample_apps.git
$ cd 6_0_0/ch11
  1. 必要なパッケージをインストールし、bundle install(本番環境でのみ必要なgemはスキップ)します。
$ yarn add [email protected] [email protected]
$ bundle install --without production
  1. データベースを移行します。
$ rails db:migrate
  1. テストを実行して、正しく動作していることを確認します。
$ rails test
  1. サンプルユーザーをデータベースにseedして、アプリを実行する準備が整いました。
$ rails db:seed
$ rails server

新しいユーザーを登録するか、メールアドレス[email protected]とパスワード(foobar)を使用してサンプル管理ユーザーとしてログインできます。

オマケ

omake ディレクトリの中に、試しにアップグレードしてみたコードを置いています。

  • 12章が始められる状態: ch12_3_2 (Rails3.2版)
  • 12章が終わった状態: ch12_4_0 (Rails4.0版)
  • 完成した Sample App を Rails 4.1 で動くようにしてみた: sample_app_4_1
  • 完成した Sample App を Rails 4.2 で動くようにしてみた: sample_app_4_2

なお、Railsチュートリアルを進められる環境をVagrantで構築するスターターキットもあります。Cloud9ではなく、手元の環境で構築したい場合はこちらも適宜ご活用して頂けたらと思います。

関連リンク/関連レポジトリ

本リポジトリのライセンス

The MIT License

Copyright © 2015-2021 YassLab Inc.

YassLab Logo

Sample Appのライセンス

Ruby on Rails Tutorial: Learn Web Development with Rails. Copyright © 2014 by Michael Hartl.

All source code in the Ruby on Rails Tutorial is available jointly under the MIT License and the Beerware License.

Copyright © 2014-2017 Michael Hartl

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].