Giter VIP home page Giter VIP logo

expense-reporter-sample's Introduction

webapps08

Submitting expenses application using by Node.js for Shell Script Magazine vol.69.

expense-reporter-sample's People

Contributors

sho7650 avatar

Watchers

James Cloos avatar  avatar

expense-reporter-sample's Issues

クリーンアーキテクチャへの対応

インタフェースアダプタ・フレームワークとドライバ

  • エンティティとユースケース部分の見直し
  • インタフェースアダプタの DI 化
  • フレームワークとドライバのリファクタリング

ユーザとロール

認証はフレームワークでの実現。認可をどうするか設計が必要。

  • エンティティの準備
  • ユースケースの設計と準備
  • ユースケース用の DI 抽象化
  • インタフェースアダプタの DI 化
  • フレームワークとドライバのリファクタリング

エラー発生時の返り値を統一化

backend 側のロジックでエラーが発生した場合の、REST での返り値を定義する

  • エラー発生時の HTTP Status コードの定義

  • Status code 200 で発生する場合の JSONエラー構造の定義

library 脆弱性対応

依存関係が壊れて update できないモジュールの再登録と再設定で、最新モジュール化

可用性対策を実施する

現状 JWT によって、ステートレスを実現できている。
ただし、Local Storage を利用していることで、セキュリティ上課題がある。

セッションCookie で、Session 情報および、SPA で必要な情報のみを安全に提供する方法へ変更する

  • SPA 側で必要な情報の洗い出し
  • セッション情報と必要な情報を提供するための安全なフォーマットの検討
  • セッションCookie 利用への変更

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.