Coder Social home page Coder Social logo

furima-29074's Introduction

README

アプリ名

フリマアプリ

アプリケーションの概要

ユーザーを登録すると商品を出品できるようになります。自身が出品した商品は、編集と削除をすることができます。他のユーザーが出品した商品は、クレジットカードを用いて購入することができます。

URL

AWS EC2によるデプロイ(停止中)

http://54.248.239.158/

Herokuによるデプロイ

https://furima-29074.herokuapp.com/

Basic認証

  • ID: admin
  • Pass: 2222


テスト用アカウント

購入者用

購入用カード情報(PAYJPテスト用)

  • 番号:4242424242424242
  • 期限:3月/(20)22年(未来の年月であれば可能)
  • セキュリティコード:123

出品者用



実装機能

トップページ

0 top_page


1.ユーザー登録機能

ユーザー登録することで出品・購入できるようになります。(ユーザー登録していない人でも出品している商品を見ることは可能です。)

1 user_registration


2.商品出品機能

商品画像を選択し、商品情報や販売したい金額を入力すると、出品することができます。(JavaScriptで販売手数料が表示されるようになっています。)

2 products_listing


3.商品の編集機能

出品した商品について、編集することができます。その際に、ユーザーの手間を省くため出品時の情報が表示されるようになっています。

3 products_edit

4.商品の削除機能

出品中であった商品について、削除ボタンを押すことで商品を削除することができます。

4 products_deleting


5.商品の購入機能

出品者以外であれば、商品を購入することができます。カード情報と配送先を入力すると購入できます。(JavaScriptとフォームオブジェクトを使用し、トークン化したカード情報をPAY.JPに送付しつつ、カード情報がアプリケーションのデータベースに保存されないように設計しています。)

5 purchase



ER 図

ER図(furima)



テーブル設計

users テーブル

Column Type Options
nickname string null: false, unique: true
email string null: false, unique: true
encrypted_password string null: false, unique: true
last_name string null: false
first_name string null: false
last_name_kana string null: false
first_name_kana string null: false
birthday date null: false

Association

  • has_many :items
  • has_many :orders
  • has_many :comments

items テーブル

Column Type Options
user references null: false, foreign_key: true
name string null: false
description text null: false
category_id integer null: false
item_status_id integer null: false
shipping_cost_id integer null: false
prefecture_id integer null: false
shipping_date_id integer null: false
price integer null: false

Association

  • belongs_to :user
  • has_one :order
  • has_many :comments

orders テーブル

Column Type Options
user references null: false, foreign_key: true
item references null: false, foreign_key: true

Association

  • belongs_to :user
  • belongs_to :item
  • has_one :payment

payments テーブル

Column Type Options
orders references null: false, foreign_key: true
postcode string null: false
prefecture_id integer null: false
city string null: false
block string null: false
building string
phone_number string null: false

Association

  • belongs_to :order

comments テーブル

Column Type Options
user references null: false, foreign_key: true
item references null: false, foreign_key: true
text text null: false

Association

  • belongs_to :user
  • belongs_to :item


使用しているバージョン等

  • ruby 2.6.5
  • Rails 6.0.3.4
  • MySQL 5.6.47


clone

% git clone https://github.com/erika618/furima-29074.git
% cd furima-29074
% bundle install
% rails db:create
% rails db:migrate
% yarn install


その他使用しているgem・使うコマンド

<!-- rubocop(インデントを整えるため) -->
% bundle exec rubocop -a

furima-29074's People

Contributors

k-foo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

furima-29074's Issues

READMEの修正

概要

  • フリマアプリケーションの内容をわかりやすいよう伝えられるようREADMEを修正する。

【依頼】フリマアプリ挙動確認

【2021/2/7更新】

URL

AWS EC2によるデプロイ

http://54.248.239.158/

Herokuによるデプロイ

https://furima-29074.herokuapp.com/

Basic認証のIDとパスワード

ID:admin
password:2222

出品者用のメールアドレスとパスワード

購入者用のメールアドレスとパスワード(修正済)

購入用カードの番号・期限・セキュリティコード(テスト用)

  • 購入用カード情報
  • 番号:4242424242424242
  • 期限:3月/(20)22年(未来の年月日であれば可能)
  • セキュリティコード:123

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.