Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / General

node version - mongo - api - best practice examples

node version - mongo - api - best practice examples

Wekan/General · January 2, 2020 at 5:45pm

node version - mongo - api - best practice examples

Wekan / General · January 2, 2020 at 5:45pm (Edited 4 years ago)

Is there any reason that I cannot run wekan on Node 10.15.3?

Can I just use an existing mongo server and just create a new user?

Is best practice for "development only" to use mongo as localhost or do what you would normally and keep wekan on it own server and remote access mongo?

If main use case is to populate and retrieve via another app (through api) and just use wekan to display cards/lists/tasks and perhaps just signal that a task is completed, is there any best practice configurations you would suggest?

If I already have an existing invitation/registration/login/authentication/two factor in place, is it easy to just populate the user tables direct? Is there an example on how best to do this with the api? if not, directly into mongo?

Load previous messages

January 2, 2020 at 10:39pm

For example, if with https://github.com/wekan/wekan install npm, use ./rebuild.sh with option 1 to install dependencies, and then 2 to build wekan (required first time to build binary dependencies), then you can for example run WITH_API=true meteor so that it's at port localhost:2000 and mongo at localhost:2001 , or WITH_API=true meteor --port 4000 so that meteor is at port 4000 and mongo at port 4001. Note that rebuild-wekan.sh script can delete local development mongodb database, you should not use development mongodb database for any critical data.

    • reply
    • like

    Well, if you really would like to remote test development, you can also add other configuration options, like WITH_API=true ROOT_URL=http://192.168.0.100 meteor --port 4000 so then you can access Wekan with mobile phone on local network and when you change some Wekan source file, then after a while meteor notices that and rebuilds Wekan. Sometimes meteor noticing changes is a lot late, so it's needed to Ctrl-c stop meteor and start it again.

      like-fill
      1
      • reply
      • like

      For creating users, first login to API with admin user username and password as form data to get bearer token https://github.com/wekan/wekan/wiki/REST-API#example-call---as-form-data

        • reply
        • like

        thank you. so I should roll node back to which version of node 8 (13?)

          • reply
          • like

          I was close with the latest version of NPM but still getting errors

            • reply
            • like

            Next version of Wekan will have new Worker role https://github.com/wekan/wekan/issues/2788#issuecomment-555471975

              • reply
              • like

              I have most of Worker role already coded, it's still in progress currently, not ready yet

                • reply
                • like

                There are also more API examples at https://wekan.github.io/api/

                  • reply
                  • like

                  instructions for installing current version of wekan said use NVM to pull in version instructions for installing current version of wekan said use NVM to pull in version 4.8

                    • reply
                    • like

                    And Wekan-Gogs integration at https://github.com/wekan/wekan-gogs

                      • reply
                      • like

                      which complains that fibers needs version 10.0.0

                        • reply
                        • like

                        Hmm, I only use nvm if n does not work

                          • reply
                          • like

                          I build node from source usually

                            • reply
                            • like

                            There could be some current production fibers version mentioned at Dockerfile or snapcraft.yaml , that works

                              • reply
                              • like

                              meteor whats which version of node 8.x?

                                • reply
                                • like

                                8.13?

                                  • reply
                                  • like

                                  raspi version seems to install newest fibers https://releases.wekan.team/raspi3/maintainer-make-bundle.sh

                                    • reply
                                    • like

                                    also there is meteor packages of https://atmospherejs.com listed at wekan/.meteor/packages and version numbers at wekan/.meteor/versions and then npm packages of https://www.npmjs.com are at wekan/package.json and wekan/package-lock.json

                                      • reply
                                      • like

                                      And local modified packages at wekan repo directly included at wekan/packages/* for example ldap etc

                                        • reply
                                        • like

                                        do ou know a clean bash for ubuntu? I am just trying to build a test version and document it so next time I do not have to screw around with it just to make it run?

                                          • reply
                                          • like

                                          Current is Node 8.17.0

                                            • reply
                                            • like