0
0

More than 3 years have passed since last update.

100日後まであと何日か表示するWebアプリを作ってみた

Last updated at Posted at 2020-03-25

AWS Amplifyの勉強を兼ねて、100日を数えるタイマーを作ってみました。

サイトURL: https://master.d3a9hlxk2vvnnd.amplifyapp.com/

サイトにアクセスすると、サインイン画面になります。create accountからアカウント登録できます。

メールアドレスに認証コードを送信する認証方法になっているので、コードを入力する必要があります。

サインインするとタイマーを作成できます。開始日と期間を設定して登録を押します。
wanitimer2.png

タイマーをクリックすると開始日を変更することもできます。

wanitimer4.png

ソースコード、なにか参考になれば。github: https://github.com/opvelll/wanitimer
ブログでの記事 : https://opvel.com/2020/03/24/post-1061/

今回のスキーマ

今回は@auth(rules: [{ allow: owner }])を使ってみた。これでユーザーごとのデータの保存ができます。

type Plan @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  startDate: AWSTimestamp!
  settingDays: Int!
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0