https://github.com/youpong/sample_app
次の教材で作られたサンプルアプリケーションです。 Ruby on Rails チュートリアル(第6版)
https://github.com/youpong/sample_app
rails ruby
Last synced: 2 months ago
JSON representation
次の教材で作られたサンプルアプリケーションです。 Ruby on Rails チュートリアル(第6版)
- Host: GitHub
- URL: https://github.com/youpong/sample_app
- Owner: youpong
- License: other
- Created: 2021-06-17T06:38:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T07:58:34.000Z (over 4 years ago)
- Last Synced: 2025-06-23T05:06:29.782Z (about 1 year ago)
- Topics: rails, ruby
- Language: Ruby
- Homepage:
- Size: 1.15 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ruby on Rails チュートリアルのサンプルアプリケーション
これは、次の教材で作られたサンプルアプリケーションです。
[*Ruby on Rails チュートリアル*](https://railstutorial.jp/)(第6版)
[Michael Hartl](https://www.michaelhartl.com/) 著
## ライセンス
[Ruby on Rails チュートリアル](https://railstutorial.jp/)内にある
ソースコードはMITライセンスとBeerwareライセンスのもとで公開されています。
詳細は [LICENSE.md](LICENSE.md) をご覧ください。
## 使い方
このアプリケーションを動かす場合は、まずはリポジトリを手元にクローンしてください。
その後、Bundler を使って必要なライブラリ(RubyGems) をインストールします。
(*)ライブラリをインストールするには、その場所にあなたの書き換え権限が必要です。ライブラリの
インストール先は指定できます。下記のようにすればアプリケーションのトップディレクトリ以下
の(vendor/bundle)にライブラリをインストールします。
```
$ bin/bundle config set --local path 'vendor/bundle'
```
RubyGems のインストール
```
$ bin/bundle config set --local without 'production'
$ bin/bundle install
```
その後、データベースへのマイグレーションを実行します。
```
$ bin/rails db:migrate
```
最後に、テストを実行してうまく動いているかどうか確認してください。
```
$ bin/rails test
```
テストが無事に通ったら、Railsサーバーを立ち上げる準備が整っているはずです。
```
$ bin/rails server
```
詳しくは、[*Ruby on Rails チュートリアル*](https://railstutorial.jp/)
を参考にしてください。
## 参考
https://github.com/yasslab/sample_apps
# How to Update Webpacker
changing your `Gemfile`:
```ruby
gem 'webpacker', '~> 6.0'
```
Then running the following to install Webpacker:
```bash
$ bin/bundle install
$ bin/rails webpacker:install
```
When `package.json` and/or `yarn.lock` changes, such as when pulling down changes to your
local environment in a team settings, be sure to keep your NPM packages up-to-date:
```bash
$ yarn install
```