Posted 2 months ago by
david-marko (@david-marko)
@tomgobich @david-marko @tomgobich

1

790

App split into modules

Is there a way how to split larger app into modules ? Default directory structure assumes app folder with controller, model etc subfolders. Can we have a multiple app folders or create modules folders under app directroy? Something like:

app

……. /projects

…………./controller

…………/model

……../tasks

…………/controller

……../invoices

Hopefully its clear. Simply make a directory structure for better distinction for particular moduleS .

Thanks ,

David

Join The Discussion! (3 Replies)

Please sign in or sign up for free to join in on the dicussion.

  1. Commented 1 month ago

    Hi David! Yeah, with AdonisJS you can configure it a ton to your liking, especially the app folder. Things in app are mostly imported and used in your code, rather than bound directly via AdonisJS, so you can configure the folder structure however you see fit.

    For inspiration, you might want to check out Romain Lanz's website. The app folder is structured very similarly to what you're after.

    2

    Please sign in or sign up for free to reply

    1. Commented 1 month ago

      thank you a lot …

      0

      Please sign in or sign up for free to reply

      1. Commented 1 month ago

        Anytime, David!!

        0

        Please sign in or sign up for free to reply