Code Monkey home page Code Monkey logo

sample_app's Introduction

Ruby on Rails チュートリアルのサンプルアプリケーション

これは、次の教材で作られたサンプルアプリケーションです。 Ruby on Rails チュートリアル (第7版) Michael Hartl

ライセンス

Ruby on Rails チュートリアル内にある ソースコードはMITライセンスとBeerwareライセンスのもとで公開されています。 詳細は LICENSE.md をご覧ください。

使い方

このアプリケーションを動かす場合は、まずはリポジトリを手元にクローンしてください。 その後、次のコマンドで必要になる RubyGems をインストールします。

$ gem install bundler -v 2.3.14
$ bundle _2.3.14_ config set --local without 'production'
$ bundle _2.3.14_ install

その後、データベースへのマイグレーションを実行します。

$ rails db:migrate

最後に、テストを実行してうまく動いているかどうか確認してください。

$ rails test

テストが無事にパスしたら、Railsサーバーを立ち上げる準備が整っているはずです。

$ rails server

production環境で実行する場合は以下のコマンドを利用してください。

$ rails server -e production

詳しくは、Ruby on Rails チュートリアル を参考にしてください。

sample_app's People

Contributors

t4jet avatar

Watchers

 avatar

sample_app's Issues

13.3マイクロポストを操作する

  • マイクロポストのアクセス制御
  • マイクロポストを作成する
  • フィードの原型
  • マイクロポストを削除する
  • フィード画面のマイクロポストをテストする

9.1Remember me 機能

  • 記憶トークンと暗号化
  • ログイン状態の保持
  • ユーザーを忘れる
  • 2つの目立たないバグ

14.2 [Follow]のWebインターフェイス

  • フォローのサンプルデータ
  • 統計と[Follow]フォーム
  • [Following]と[Followers]ページ
  • [Follow]ボタン(基本編)
  • [Follow]ボタン(Hotwire編)
  • フォローをテストする

4.4 クラス

  • コンストラクタ
  • クラスの継承
  • 組み込みクラスの変更
  • コントローラクラス
  • ユーザークラス

3章

・セットアップ
・静的ページ
・テスト
・動的なページ

6.2 ユーザーを検証する

  • 有効性を検証する
  • 存在性を検証する
  • 長さを検証する
  • フォーマットを検証する
  • 一意性を検証する

10.2 認可

  • ユーザーにログインを要求する
  • 正しいユーザーを要求する
  • フレンドリーフォワーディング

7.5 プロ品質のデプロイ

  • 本番環境でのTLS
  • 本番環境用のWebサーバー
  • 本番データベースを設定する
  • 本番環境へのデプロイ

13.1 Micropostモデル

  • 基本的なモデル
  • Micropostのバリデーション
  • User/Micropostの関連付け
  • マイクロポストを改良する

6.1Uesrモデル

  • データベースのマイグレーション
  • モデルファイル
  • ユーザーオブジェクトを作成する
  • ユーザーオブジェクトを検索する
  • ユーザーオブジェクトを更新する

8.2 ログイン

  • log_inメソッド
  • 現在のユーザー
  • レイアウトリンクを変更する
  • メニューのトグル機能
  • モバイル向けスタイリング
  • レイアウトの変更をテストする
  • ユーザー登録時にログインする

8.1 基本的なログイン機構

  • Sessionsコントローラ
  • ログインフォーム
  • ユーザーの検索と認証
  • フラッシュメッセージを表示する
  • フラッシュのテスト

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.