technote-space / frourio-demo Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
カード番号 4000000000005126
でテストできるパターン
Charge succeeds but refunding a captured charge fails asynchronously with a failure_reason of expired_or_canceled_card. Note that because refund failures are asynchronous, the refund will appear to be successful at first and will only have the failed status on subsequent fetches. We also notify you of refund failures using the charge.refund.updated webhook event.
ので現状でも一応問題はなさそう(要確認)
ただ失敗時のエラーはおそらく英語なので適切なエラー表示にしたほうがよい
できれば別のクレジットカードを使用するための機能を追加したい
このエラーが通知された場合はマニュアル対応
試行回数だけは Stripe 確認前に変更しているので要修正
諸々追記
React Context によるSPAは管理画面
フロントは react-router-domによるルーティング
起動時に pid ファイル作成
next.js
OAuth認証
admin と front のセットアップ方法を分けて記述
当日昼12時~翌日12時まで
昼12時に新しい情報を送信
=> 連泊に合わせてチェックイン前日12時
auth0 での登録時のメールは確認不要
(email_verifiedによってはチェックしたほうがいいかもしれないが面倒なので)
アカウントページでの更新時にメールアドレスは仮の変更にしておく
送信されたメールのURLが踏まれた時点で更新する
チェックアウトの選択時に時間も指定できるようにする
バリデーション追加
material table の date picker をそのまま使用しているが予約可能な日付等がわからないため FullCalendar を使用して他の予約を表示したり選択不可にしたりする
replace する値のサニタイズ
DB に送信に必要な値をqueue
cron でqueue を処理
しきい値以上失敗が続いたメールは破棄し、失敗時の処理を実行
予約をキャンセル
特になし
TestCafe とか使ってみたい
ログインしている場合と異なりメールアドレスはない状態
メールアドレスの入力を追加
メールアドレスの確認を必要とするかどうかは #86
サーバなしでも動作させられるように
README に gif で
src => admin
新しく front ディレクトリ作成
それぞれで next.js
別 port
自前でホスティング
Herokuは無料だけどコールドスタートが遅いので
いくつかのライセンスが md 形式だったので
#
とか入ってたら変換?
テキスト形式も含めて変換しても問題なさそうならすべてとりあえず変換
https://github.com/markedjs/marked
https://github.com/cwjohan/markdown-to-html
中身適当でとりあえず作成
https://github.com/node-cron/node-cron
かんたんな仕様
テーブル構成
使用技術
等
ユニークかつ推測しにくい長さ
主にゲスト予約への対応
Electron は色々警告出ちゃうのでブラウザで動作するようにサーバを用意
https://github.com/prisma/prisma/releases/tag/2.15.0
2.15.0 で seeding がサポートされた
しかしまだ tscofig の paths には対応していないようなので修正待ち
prisma/seeds/seeder.ts は prisma/seed.ts に移動しておく
ログインしていない状態でも予約可能にしたい
related #88
とりあえず予約作成できればいいという状態なのでフローを改善
全角に変換して保存
https://github.com/niwaringo/moji
別プロセスで送信
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.