Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Question for Nodejs guys

    DSF Development
    3
    7
    184
    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.
    • MartinNYHC
      MartinNYHC last edited by

      I'm quite new to Nodejs (Python guy). What's the best practice for a dev environment for DWC?

      Especially I currentlx have the question:

      • When doing a npm run serve it takes a long time. Can this be speeded up?

      • Is is possible to compile DWC on my locla machine and connect to my remote Duet board?

      Thx!

      Sindarius 1 Reply Last reply Reply Quote 0
      • Sindarius
        Sindarius @MartinNYHC last edited by

        @MartinNYHC you should only need to use ‘npm run serve’ once. As you make changes it will rebuild changes and serve them. The DWC does allow you to connect to a remote machine but with RRF 3.2 and up you will need to allow CORS by using M586 C”*”

        User3D 1 Reply Last reply Reply Quote 1
        • MartinNYHC
          MartinNYHC last edited by

          That's what I was looking for. Very useful. Thx mate!

          1 Reply Last reply Reply Quote 1
          • User3D
            User3D @Sindarius last edited by

            @Sindarius Does that mean I can have my Duet3 MB6HC connected to a remote machine ?or It is possible with boards with wifi facility only????

            Sindarius 1 Reply Last reply Reply Quote 0
            • Sindarius
              Sindarius @User3D last edited by

              @User3D I am not completely sure I understand the question. When working on code changes for the DWC you can run a local instance on your development machine and the DWC prompts you for an ip address to a Duet to connect to. This allows you to do development for plugins, bug fixes without having to constantly upload the webpage after every change to the Duet.

              MartinNYHC 1 Reply Last reply Reply Quote 0
              • MartinNYHC
                MartinNYHC @Sindarius last edited by

                @Sindarius Yes, bur that didn't work. I was not able to connect to my Duet 3 remotely.

                Sindarius 1 Reply Last reply Reply Quote 0
                • Sindarius
                  Sindarius @MartinNYHC last edited by

                  @MartinNYHC did your browser report any errors when you tried?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA