Code Monkey home page Code Monkey logo

fleamarket_sample_80d's Introduction

README

  • Ruby version ruby 2.6.5

  • System dependencies Rails 6.0.3.2

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

  • Database creation

itemsテーブル

column Type Options
name string null:false
introduction text null:false
user_id references null:false,foreign_key:true
condition_id integer null:false
postagepayer_id integer null:false
postagetype_id integer null:false
prefecture_id integer null:false
preparationdays_id integer null:false
sellstatus_id integer null:false
price integer null:false
category_id integer null:false
brand_id ---- -----
buyer_id integer -----
saler_id references null:false,foreign_key:true

Association

  • belongs_to :user
  • belongs_to :category
  • belongs_to :brand
  • has_many :images
  • belongs_to_active_hash :prefecture
  • belongs_to_active_hash :condition
  • belongs_to_active_hash :postagepayer
  • belongs_to_active_hash :postagetype
  • belongs_to_active_hash :preparationdays
  • belongs_to_active_hash :sellstatus
  • belongs_to :saler,class_name:"User"
  • belongs_to :buyer,class_name:"User"

brandテーブル

column Type Options
name string null:false

Association

  • has_many :items

categoryテーブル

column Type Options
name string null:false
ancestry string null:false

Association

  • has_many :items
  • has_ancestry

imageテーブル

column Type Options
src string null:false
item_id references foreign_key:true

Association

  • belongs_to :item
  • mount_uploader :src, ImageUploader

userテーブル

column Type Options
nickname string null: false, unique: true
email string null: false, unique: true
password string null: false

Association

  • has_many :items
  • has_one :profile
  • has_one :sending
  • has_one :credit_card

profilesテーブル

column Type Options
first_name string null:false
family_name string null:false
first_name_kana string null:false
family_name_kana string null:false
birth_date date null:false
use_id references null:false, foreign_key:true

Association

  • belongs_to :user

sendingテーブル

column Type Options
first_name string null:false
family_name string null:false
first_name_kana string null:false
family_name_kana string null:false
post_code integer null:false
prefecture_id integer null:false
city string null:false
house_number string null:false
building_name string -------
user_id references null:false, foreign_key:true

Association

  • belongs_to :user
  • belongs_to active hash:prefecture

credit_cardsテーブル

column Type Options
use_id references null:false, foreign_key:true
customer_id string null:false
card_id string null:false

Association

  • belongs_to :user
  • How to run the test suite ■URL:http://3.113.175.20 ■ テスト用アカウント ■ 購入者用 メールアドレス:[email protected] パスワード:testtest ■ 購入用カード情報 番号:4242424242424242 期限:12月 30年 セキュリティカード:072 ■ 出品者用 メールアドレス:[email protected] パスワード:uru1234

  • Services (job queues, cache servers, search engines, etc.) ■ユーザー登録機能 ■出品機能 ■商品表示機能 ■購入機能

  • Deployment instructions ■ URL IPアドレス:3.113.175.20 Github(最終課題のリポジトリ):fleamarket_sample_80d ■ Basic認証 ID:80d Pass:password

fleamarket_sample_80d's People

Contributors

tatsuma0928 avatar dddrvshhh avatar shinjiro0126 avatar naomaru-t avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.