GithubHelp home page GithubHelp logo

ddd-cqrs-pattern's Introduction

ToDo List with DDD+CQRS

CI Status codecov CodeFactor License: MIT

Table of Contents

Details

generated with TOC Generator

動作要件

  • Node.js >= 14
  • yarn = 1.x

これはなに?

DDDCQRSで実装したTODOリスト

データベースとしてお試しでNotionIntegrationを使用(遅いので別のDBも追加予定)

図1 図2

残タスク

  • 一覧をタグやステータスでタブで分けて表示
  • タスクを日付でグループ化して表示
  • Vercel でホスティング
  • アプリ実装
  • etc.

開発

セットアップ

  1. パッケージのインストール
  • yarn
  1. 環境変数の設定
    1. Database
      • DATABASE_TYPE: mysql or notion
        • NOTION_SECRET: Notionの設定(secret_xxxxxx)
        • NOTION_PARENT_ID: Notionの設定(親となるページID)
        • MYSQL_...: MySQLの設定
    2. Auth0
      • NEXT_PUBLIC_AUTH0_CLIENT_ID: Auth0のClientID
      • NEXT_PUBLIC_AUTH0_DOMAIN: Auth0のDomain
    3. Slack
      • SLACK_WEBHOOK_URL: エラー時にSlackを送信したい場合に設定するwebhook
  2. マイグレーション
  • yarn migrate

起動

yarn dev

http://localhost:3000/

Linter

yarn lint

fix

yarn lint:fix

Type check

yarn typecheck

Jest

yarn cover

スナップショットの更新

yarn cover:update

Storybook

yarn sb

Deploy

Vercel にデプロイする際は以下の環境変数を設定してください。

NOTION_SECRET, NOTION_PARENT_ID, NEXT_PUBLIC_AUTH0_CLIENT_ID, NEXT_PUBLIC_AUTH0_DOMAIN

Author

GitHub (Technote)
Blog

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.