Top Menu

Jump to content
  • OpenProject
    • View all projects
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
    • Welcome to OpenProject

      Get an overview

      Get a quick overview of project management and team collaboration with OpenProject.
      You can restart this video from the help menu

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Legal notice
    • Data privacy and security policy
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Boards
  • Calendar
  • Forums
You are here:
  • Forums
  • General discussion

Content

node.js api wrapper?

Added by Алексей Баранов 6 months ago

Hi there everybody!

Is there OpenProject Node.js lib which abstracts work with API? If not, we can start this work and put it on github as opensource if OpenProject team with it. We would like to know OpenProject team's wishes about architecture and API scope of this lib. We also want to know is this forum a good place to discuss this.


Replies (5)

RE: node.js api wrapper? - Added by Johan Bouduin 6 months ago

Hi,

I have started an Electron project (so node) for my own convenience and as a playground for Electron. So nothing which is ready for deployment (it will probably never be) and not much documented.

Nevertheless, feel free to have a look https://github.com/jbouduin/openproject.electron and reuse whatever seems re-usable. 

Oh, and please let me know if you have something on github. 

have fun...

Johan

RE: node.js api wrapper? - Added by Алексей Баранов 6 months ago

Hi Johan!

I looked at the project with interest. Unfortunately, I don't know if we can apply it in our work. The problem is, it's overly comprehensive.

It would be great if you separate the call to the REST API from the project into a separate library. Such a library don't contain bindings to DI library, presentation layer, authorization, and so on.

If you could separate the entities and API call to such a library, then other commands could reuse it in their work. Please let us know if we can hope so.

BTW we have started development of such library. But we would prefer your one if you will separate it from the electron-project. By now we could't share it. We need some time to resolve security restrictions before we can push something to github. You may know that bank's security layer is very heavy. I will inform you about our library when we get permissions  and push it to github.

Alexey

RE: node.js api wrapper? - Added by Johan Bouduin 6 months ago

Hi Alexey,

I know it is not what you want to hear, but I have no intention at all to rewrite/restructure anything. This project is and will remain just a playground, implemented quick and dirty, no tests at all, ... 

good luck

Johan

RE: node.js api wrapper? - Added by Алексей Баранов 6 months ago

Yeah, bad news. I was hoping we can reuse your library. It seems well
written.

Let me know if you change your decision.

Good luck.

чт, 20 авг. 2020 г., 19:32 :

RE: node.js api wrapper? - Added by Алексей Баранов 4 months ago

Hello, Johan!

 Here is our self-developed TypeScript library for Node.js/Browser environment. Our team developed it for internal bank project. We decided to share it over public github repo. 

Please take a time to watch it. Thanks.

https://www.npmjs.com/package/op-client

  • (1 - 5/5)
Loading...