Coder Social home page Coder Social logo

payjp_app's Introduction

README

アプリ名

payjp_app


説明

PAY.JPを用いて、商品の購入することができます。また購入後の商品はSold Out!!とメッセージが表示されます。 (PAY.JPが提供するテストモードを用いて、クレジット決済機能を試験的に実装しています。)
https://user-images.githubusercontent.com/68714247/106376336-b8887080-63d7-11eb-9d3b-20fcab9688cf.mp4


ER図

erd.pdf

テーブル設計

users テーブル

Column Type Options
name string null: false
email string null: false
encrypted_password string null: false

Association

  • has_one :card, dependent: :destroy

items テーブル

Column Type
name string
price integer

Association

  • has_one :item_order

cards テーブル

Column Type Options
card_token string null: false
customer_token string null: false
user_id references foreign_key: true

Association

  • belongs_to :user

item_orders テーブル

Column Type Options
item_id references foreign_key: true

Association

  • belongs_to :item

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

  • ruby 2.6.5
  • Rails 6.0.3.4
  • MySQL

clone

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

https://pay.jp/ 予めログインのうえ、公開鍵と秘密鍵を環境変数に設定しておく必要があります。


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

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

payjp_app's People

Contributors

k-foo avatar

Watchers

 avatar

payjp_app's Issues

Issue4【カード登録の実装】

概要

  • 環境変数の設定
  • PAY.JPを使えるように設定
  • カード登録画面の実装
  • jsファイルの実装
  • cardsコントローラーの実装
  • マイページ画面にカード情報が表示されるよう編集

Issue2【商品一覧の実装】

概要

  • ルーティングの設定
  • itemモデルの生成
  • seedファイルの取り込み
  • itemsコントローラーの生成
  • 商品一覧ページの実装

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.