Hi,
I am wondering that is there any way by which we can call third-party custom API created in node.js in discourse?
feedback appreciated
Thanks
Hi,
I am wondering that is there any way by which we can call third-party custom API created in node.js in discourse?
feedback appreciated
Thanks
Shouldn’t matter what the API is written in, if all interaction happens over http.
You will probably need to write some javascript ajax calls in a Theme Component, or if appropriate, make http calls in some new Plugin code you write in Ruby using a suitable Ruby gem like Excon or Httparty.
Thanks for the reply @merefield I appreciate your feedback.
I am new to discourse development. Previously, I have done work on nodebb community CMS belongs to Nodejs. There, I have done a lot of customization ( created custom API to call Zoho tickets data, fetching the list of Vimeo videos a lot more). So I want to perform the same or need to create the same API(s) in it and render response data in some static pages to the user.
Thanks
백엔드를 사용하여 호출을 수행하세요:
장시간 소요되는 작업은 Job에 배치하세요.
이를 위해서는 플러그인 내에 Ruby 코드가 필요하며, 위에서 언급한 gems 중 하나가 필요합니다.
Discourse 플러그인 개발에 진입하는 것이 반드시 쉬운 것은 아닙니다. Discourse는 크고 복잡하며 의견이 분분한 플랫폼이지만, 여기에는 훌륭한 공식 가이드가 있으며, 참고할 수 있는 기존 오픈소스 플러그인이 많이 있습니다( Customization > Plugin 채널과 GitHub 링크를 참조하세요). 유사한 기능을 수행하는 플러그인을 찾아 코드로 어떻게 해결했는지 살펴보세요.
외형적인 변경이라면 Theme Component를 고려해 보세요. 여기의 테마 개발 가이드를 참고하세요.
예를 들어, 이 예제를 확인해 보세요: discourse-tc-quote-of-the-day/get-quote.js.es6 at master · merefield/discourse-tc-quote-of-the-day (github.com)
okay @merefield I am looking into it. Appreciate your feedback.