Comments Module in a static page with Text Box

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!

1 Like

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.

2 Likes

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…

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

2 Likes

You are correct…
Thx for the explanation…

:slight_smile:

1 Like