dieslnikolas/clicker

API - Clean

dieslnikolas opened this issue · 4 comments

Separate applications to

  • Mininal .NET 7 SDK API
  • ReactrJS
  • Electron Shell

Clean https://khalilstemmler.com/articles/software-design-architecture/coding-without-di-container/

FOLDER STRUCTURE:
App

  • Controlers
    • Settings
      • Get
      • Create
      • Edit
      • Delete
    • Project
      • Get
      • Create
      • Edit
      • Delete
    • Script
      • Get
      • Create
      • Edit
      • Delete
    • Module
      • Get
      • Create
      • Edit
      • Delete
    • Data
      • Get
      • Create
      • Edit
      • Delete
    • ScriptType
      • Get
  • Decorators
    • Controller
    • Action
  • Application
  • Routes???
  • API result model
    • Model T Business model
    • Validations
    • Issucess
      Core
  • Contracts
    • Repositories
      • Project
      • Settings
      • Script
      • Module
      • Data
      • ScriptType
    • Contexts???
    • Services???
  • Validations
  • Models
    • By Repos
  • Services
    • Implementation
      Infrastructure
  • Repositories

NEXT ISSUES:

Fuck clean architecture. Keep it simple. There is only a few methods. Just write it down. Refactor later

Use

  • Json based DB
  • minimal net core api
  • spawn api proces on localhost with electron
  • electron will generate some secrer and use it for renderer proces and api (as bearer token)
  • delete all business code from frontend
  • read configuration inside api it frontend
  • dont support pwgene as is just enable conversion (load pwgene to our structure)

This is not relevant anymore. Closing