テックキャンプの最終課題にて作成したアプリケーションを紹介します。また本資料では、自身で実装した箇所、および開発を通じて得られた経験についても紹介します。
フリーマーケットのアプリケーションを作成しました。
- URL http://18.178.152.156/
- ID: kengo
- Pass: s72ifea3
- メールアドレス: tadasi22@gmail.com
- パスワード: tadashi22
- 番号:4242424242424242
- 期限:12/20
- セキュリティコード:123
- メールアドレス: kengo11@gmail.com
- パスワード: kengo11
- Ruby/Ruby on Rails/MySQL/Github/AWS/Visual Studio Code
- 開発期間:2週間
- 1日あたりの平均作業時間:10時間
- 人数:3人
- アジャイル型開発(スクラム)
- Trelloによるタスク管理
- payjpを使用しクレジットカードの登録、削除、商品購入
- ウィザード形式を使用しユーザーの個人情報の新規登録、削除、編集
- ユーザーマイページ関連
Column | Type | Options |
---|---|---|
nickname | string | null: false |
first_name | string | null: false |
last_name | string | null: false |
first_name_kana | string | null: false |
last_name_kana | string | null: false |
string | null: false | |
phone_number | string | |
password | string | null: false |
birthday_year_id | integer | null: false |
birthday_moon_id | integer | null: false |
birthday_day_id | integer | null: false |
self_introduce | text | ------- |
- has_many :items
- has_many :comments
- has_one :address
- has_one :card
- has_many :sns_credentials
- belongs_to_active_hash :birth_year
- belongs_to_active_hash :birth_moom
- belongs_to_active_hash :birth_day
Column | Type | Options |
---|---|---|
user_id | integer | |
name | text | null: false |
content | string | null: false |
brand | string | |
category | references | null: false, default: 0 |
condition | references | null: false |
size | references | null: false, default: 0 |
delivery_date | references | null: false, default: 0 |
delivery_fee | references | null: false, default: 0 |
prefecture | references | null: false, default: 0 |
delivery_way | references | null: false, default: 0 |
price | integer | null: false |
buyer_id | integer | foreign_key: true |
- belongs_to :user
- has_many :category
- has_many :comments, dependent: :destroy
- has_many :images, dependent: :destroy
- accepts_nested_attributes_for :images, allow_destroy: true
- belongs_to_active_hash :condition, resence: true
- belongs_to_active_hash :size, presence: true
- belongs_to_active_hash :delivery_date, presence: true
- belongs_to_active_hash :delivery_fee, presence: true
- belongs_to_active_hash :prefecture, presence: true
- belongs_to_active_hash :delivery_way, presence: true
Column | Type | Options |
---|---|---|
user_id | integer | null: false |
item | reference | null: false |
user | reference | null: false |
text | text | null: false |
- belongs_to :user
- belongs_to :item
Column | Type | Options |
---|---|---|
user | references | null: false, foreign_key: true |
customer_id | string | null: false |
card_id | string | null: false |
- belongs_to :user
Column | Type | Options |
---|---|---|
user_id | integer | null: false |
postal_code | string | null: false |
prefecture_code | string | null: false |
city_name | string | null: false |
street | string | null: false |
- belongs_to :user
Column | Type | Options |
---|---|---|
item | references | |
name | string | null: false |
- has_many :items
- has_ancestry
Column | Type | Options |
---|---|---|
src | string | |
item_id | references | null: false |
- belongs_to :item
- mount_uploader :src, ImageUploader
Column | Type | Options |
---|---|---|
provider | string | |
uid | string | |
user | references | foreign_key: true |
- belongs_to :user, optional: true, dependent: :destroy