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:57pm

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

          it's visible at Dockerfile, snapcraft.yaml etc

            • reply
            • like

            you may need to edit rebuild-wekan.sh if you already have Node 8.17.0 and newest npm installed

              • reply
              • like

              yeah selected nvm 8.17.0

                • reply
                • like

                ran npm install

                  • reply
                  • like

                  getting

                    • reply
                    • like

                    npm install

                    [email protected] install /home/wekan/bundle/programs/server/node_modules/fibers node build.js || nodejs build.js

                    make: Entering directory '/home/wekan/bundle/programs/server/node_modules/fibers/build' CXX(target) Release/obj.target/fibers/src/fibers.o CXX(target) Release/obj.target/fibers/src/coroutine.o CC(target) Release/obj.target/fibers/src/libcoro/coro.o SOLINK_MODULE(target) Release/obj.target/fibers.node COPY Release/fibers.node make: Leaving directory '/home/wekan/bundle/programs/server/node_modules/fibers/build' Installed in /home/wekan/bundle/programs/server/node_modules/fibers/bin/linux-x64-57-glibc/fibers.node

                    [email protected] install /home/wekan/bundle/programs/server node npm-rebuild.js

                    events.js:183 throw er; // Unhandled 'error' event ^

                    Error: spawn npm ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:362:16) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) at Function.Module.runMain (module.js:696:11) at startup (bootstrap_node.js:204:16) at bootstrap_node.js:625:3 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node npm-rebuild.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                    npm ERR! A complete log of this run can be found in: npm ERR! /home/wekan/.npm/_logs/2020-01-02T23_02_09_994Z-debug.log

                      • reply
                      • like

                      ...

                        • reply
                        • like

                        is that fiber or meteor ?

                          • reply
                          • like

                          is this the solution in the code you sent?

                            • reply
                            • like

                            cd bundle/programs/server npm uninstall fibers node-gyp node-pre-gyp npm install [email protected] node-pre-gyp fibers npm install npm uninstall fibers node-gyp node-pre-gyp npm install node-pre-gyp npm install fibers npm install [email protected]

                              • reply
                              • like

                              Hmm, are you trying to install bundle or build from source?

                                • reply
                                • like

                                For building from source, you create directory /home/wekan/repos and there clone https://github.com/wekan/wekan (or your own fork) so it will be at /home/wekan/repos/wekan

                                  • reply
                                  • like

                                  bundle is not full source

                                    • reply
                                    • like

                                    for x64 Linux, bundle is at https://releases.wekan.team with name wekan-VERSIONNUMBER.zip and RasPi3/4 versio is at https://releases.wekan.team/raspi3/

                                      • reply
                                      • like

                                      Bundle only needs node.js and mongodb - it does not need meteor

                                        • reply
                                        • like

                                        Meteor development can only be done at x64 Linux, because officially Meteor does not support ARM etc. But bundle can be run at any OS/CPU that has node.js and mongodb

                                          • reply
                                          • like

                                          at this point was looking for something that does not break :)

                                            • reply
                                            • like

                                            was just following this before its started going sideways

                                              • reply
                                              • like