JacobCoffee / byte

The Discord bot built for developers
https://byte-bot.app/
MIT License
5 stars 2 forks source link

Refactor: Move into proper project config #13

Closed JacobCoffee closed 1 year ago

JacobCoffee commented 1 year ago

Summary

After some testing it seems we can do what we want.

We should clean things up to start building upon.

Basic Example

something like this, I think

➜ ntp bytestructexample && mkdir -p src/{web/{lib,domain},bot/{ext},lib/{db,log}} && tree
  bytestructexample
 └─  src
    ├─  bot
    │  └─  {ext}
    ├─  lib
    │  ├─  log
    │  └─  db
    └─  web
       ├─  domain
       └─  lib

Drawbacks and Impact

No response

Unresolved questions

No response

JacobCoffee commented 1 year ago

Another idea architecturally would be to just have the bot made API calls to a Litestar API that can be scaled as needed. This way we could showcase Litestar in action, explore different design patterns, scale better, etc.

JacobCoffee commented 1 year ago

We should avoid any inter-domain dependencies in case we separated from the monorepo pattern.