Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Question for Nodejs guys

    Scheduled Pinned Locked Moved
    DSF Development
    3
    7
    435
    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.
    • MartinNYHCundefined
      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!

      Sindariusundefined 1 Reply Last reply Reply Quote 0
      • Sindariusundefined
        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”*”

        User3Dundefined 1 Reply Last reply Reply Quote 1
        • MartinNYHCundefined
          MartinNYHC
          last edited by

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

          1 Reply Last reply Reply Quote 1
          • User3Dundefined
            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????

            Sindariusundefined 1 Reply Last reply Reply Quote 0
            • Sindariusundefined
              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.

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

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

                Sindariusundefined 1 Reply Last reply Reply Quote 0
                • Sindariusundefined
                  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