Embedding Discourse into your other apps is pretty easy. See
Discourse does this out of the box. Here’s a snippet from the Emed page. You can click below and it’ll expand, or take you the thread in context.