[]() []() []() []()
このアプリケーションは、RubyおよびRuby On Railsを用いた基本的なWebアプリケーション作成の学習過程において制作されたものです。
This application was created in the learning process of basic Web application creation by Ruby and Ruby On Rails.
株式会社万葉の新入社員教育用カリキュラム https://everyleaf.com/
https://el-training-kaitofu.herokuapp.com/
[User as an admininstrator]
email: "test_user_a@example.com", password: "password"
[Common user]
email: "test_user_b@example.com", password: "password"
Ruby 2.5.3
Bundler 1.17.3
PostgreSQL 11.1
Clone this repository
$ git clone git@github.com:kaitofu/el-training.git
Move into your project
$ cd el-training
Install Ruby 2.5.3 (If nessesary)
$ rbenv install 2.5.3
Set Ruby version to 2.53(If nessesary)
$ rbenv local 2.5.3
Install Bundler 1.17.3(If nessesary)
$ gem install bundler -v 1.17.3
Install gems
$ bundle install
Install PostgreSQL(If nessesary)
$ brew install postgresql
Start PostgreSQL(If nessesary)
$ brew services start postgresql
Create database
$ bin/rails db:create
Exec migration
$ bin/rails db:migrate RAILS_ENV=development
Create sample data(If nessesary)
$ rake db:seed
Build & run server
$ bin/rails s
Then, you can see app in http://localhost:3000
Login Heroku
$ heroku login
Register remote repository to Heroku
$ heroku git:remote -a el-training-kaitofu
Deploy application to server
$ git push heroku master
Exec database migration
$ heroku run bin/rails db:migrate
$ heroku login
$ git add -A
$ git commit -m "Update application"
$ git push heroku master
* If db had been changed
$ heroku run bin/rails db:migrate
no. | name |
---|---|
1 | Tasks |
2 | Users |
3 | Labels |
4 | LabelTasks |
column_name | data_type | not_null | default | index | comments |
---|---|---|---|---|---|
task_id | integer | true | |||
name | string | true | true | [validation] until 30 character s | |
priority | integer | ||||
description | text | ||||
status | string | true | "未着手" | true | |
user_id | integer | true | true | ||
deadline | date | [validation] should be today or later | |||
created_at | datetime | true | |||
updated_at | datetime | true |
column_name | data_type | not_null | default | index | comments |
---|---|---|---|---|---|
user_id | integer | true | |||
name | string | true | |||
string | true | true | [validation] should be based on RFC2822 | ||
password_digest | string | true | |||
admin | boolean | true | false | ||
created_at | datetime | true | |||
updated_at | datetime | true |
column_name | data_type | not_null | default | index | comments |
---|---|---|---|---|---|
label_id | integer | true | |||
name | string | true | |||
user_id | integer | true | |||
created_at | datetime | true | |||
updated_at | datetime | true |
column_name | data_type | not_null | default | index | comments |
---|---|---|---|---|---|
label_id | integer | ||||
user_id | integer | ||||
created_at | datetime | true | |||
updated_at | datetime | true |
This project is licensed under the MIT License - see the LICENSE.md file for details