Skip to content

tadashi622/free_app

 
 

Repository files navigation

README

概要

テックキャンプの最終課題にて作成したアプリケーションを紹介します。また本資料では、自身で実装した箇所、および開発を通じて得られた経験についても紹介します。

アプリケーション概要

フリーマーケットのアプリケーションを作成しました。

接続先情報

テスト用アカウント等

購入者用

購入用カード情報

  • 番号:4242424242424242
  • 期限:12/20
  • セキュリティコード:123

出品者用

開発状況

開発環境

  • Ruby/Ruby on Rails/MySQL/Github/AWS/Visual Studio Code

開発期間と平均作業時間

  • 開発期間:2週間
  • 1日あたりの平均作業時間:10時間

開発体制

  • 人数:3人
  • アジャイル型開発(スクラム)
  • Trelloによるタスク管理

担当箇所一覧と確認方法

商品購入

buy

ユーザー関連

login

マイページ

my

各担当箇所の詳細

  • payjpを使用しクレジットカードの登録、削除、商品購入
  • ウィザード形式を使用しユーザーの個人情報の新規登録、削除、編集
  • ユーザーマイページ関連

usersテーブル

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
email 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 -------

Association

  • 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

itemsテーブル

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

Association

  • 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

Commentsテーブル(中間テーブル)

Column Type Options
user_id integer null: false
item reference null: false
user reference null: false
text text null: false

Association

  • belongs_to :user
  • belongs_to :item

Cardsテーブル

Column Type Options
user references null: false, foreign_key: true
customer_id string null: false
card_id string null: false

Association

  • belongs_to :user

Address

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

Association

  • belongs_to :user

categoryテーブル

Column Type Options
item references
name string null: false

Association

  • has_many :items
  • has_ancestry

imagesテーブル

Column Type Options
src string
item_id references null: false

Association

  • belongs_to :item
  • mount_uploader :src, ImageUploader

sns_credentialsテーブル

Column Type Options
provider string
uid string
user references foreign_key: true

Association

  • belongs_to :user, optional: true, dependent: :destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 37.4%
  • CSS 35.5%
  • HTML 23.2%
  • JavaScript 3.8%
  • CoffeeScript 0.1%