# Comments Module in a static page with Text Box

**URL:** https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788
**Category:** Development
**Created:** [October 20, 2016, 2:27pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788 "2016-10-20T14:27:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wtolotti](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wtolotti](https://meta.discourse.org/u/wtolotti)
#### Post date: [October 20, 2016, 2:27pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788/1 "2016-10-20T14:27:08Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 20, 2016, 3:46pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788/2 "2016-10-20T15:46:51Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![wtolotti](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wtolotti](https://meta.discourse.org/u/wtolotti)
#### Post date: [October 20, 2016, 4:58pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788/3 "2016-10-20T16:58:23Z")

</div>

Great!

> [@Falco](#):
>
> Create a backend that will receive the request from the Angular app and post to Discourse using an admin API key.

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

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 20, 2016, 5:03pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788/4 "2016-10-20T17:03:55Z")

</div>

> [@wtolotti](#):
>
> 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.

---

<div class="post-metadata">

### Author: ![wtolotti](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wtolotti](https://meta.discourse.org/u/wtolotti)
#### Post date: [October 20, 2016, 5:12pm UTC](https://meta.discourse.org/t/comments-module-in-a-static-page-with-text-box/51788/5 "2016-10-20T17:12:43Z")

</div>

You are correct..  
Thx for the explanation..

🙂
