Vue.jsとRuby on Railsで作成したToDoアプリ
デモ用のためユーザー機能等は未実装
- Ruby 2.6.3
- Rails 6.1.1
- Vue.js 2.6.12
- Vuetify 2.4.3
$ brew install rbenv
$ brew install ruby-build
rbenv install 2.6.3
$ rbenv global 2.6.3
$ rbenv rehash
$ gem install bundler
$ brew install mysql
$ mysql.server start
> Starting MySQL
> SUCCESS!
$ bundle install --path=vendor/bundle
$ bundle exec rails s
> application starting in development on localhost:3000
config/database.yml
default: &default
adapter: mysql2
encoding: utf8
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <MySQL username>
password: <MySQL password>
socket: /tmp/mysql.sock
$ rails db:create
$ rails db:migrate
$ bundle exec rails s
> application starting in development on localhost:3000