MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Is it possible to run a module stand-alone without the MM framework?

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      E3V3A
      last edited by

      After having spent 3 months starting and restarting the MM framework a thousand times, for debugging purposes, I came up with the question, if there is a way to run a mudule without the MM framework. After all, we have already installed all the pieces and dependencies, the default config is already present in the module itself and so on.

      So what would it take to run a module stand-alone?
      (No worry about the layout, positioning and CSS.)

      "Everything I do (here) is for free – altruism is the way!"
      MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        j.e.f.f Project Sponsor Module Developer @E3V3A
        last edited by

        @E3V3A What is the issue you’re trying to solve? Trying to speed up development?

        In theory the module is just a NodeJS app so it should be possible to run it standalone, but you would not have the benefit of the module framework – socket notifications, helper methods, underlying class methods, such as updateDom(), etc.

        If you are just after making development easier and faster, I’d suggest instead to install MagicMirror on your desktop or laptop computer, and run in as server only (node serveronly). Use Chrome as your browser as I believe its rendering engine is the same as Electron’s. This way you’ll have the benefit of your fast computing power, and subsequently fast restarting of MagicMirror, especially when run in server-only mode.

        E 1 Reply Last reply Reply Quote 2
        • E Offline
          E3V3A @j.e.f.f
          last edited by

          @j.e.f.f Thank you. Yeah, that seem to be the best dev solution so far.

          "Everything I do (here) is for free – altruism is the way!"
          MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy