Comments Module in a static page with Text Box


(Willian Tolotti) #1

Hi guys!

I was thinking, how can I insert a module in my Angular app, without an iframe page, with all the features that comments can have.

I was looking, nowadays there is an embbed tool, but without a comment box and linking to a external page (forum) to reply and view all discussions…

How Can I structure this feature?

Thx!


(Rafael dos Santos Silva) #2

You will need to:

  • Rewrite the composer in Angular

  • Use SSO between your app and Discourse so the comment goes to the right user

  • Create a backend that will receive the request from the Angular app and post to Discourse using an admin API key.


(Willian Tolotti) #3

Great!

But, I can use the Discourse API docker to up in my server, right? This way I don’t need to create a backend…


(Rafael dos Santos Silva) #4

That would expose the admin API key in plain Javascript. Won’t work.


(Willian Tolotti) #5

You are correct…
Thx for the explanation…

:slight_smile: