Sorry, we found 0 results. Please try another query.
Showing max 10 of results

Add comments to this blog

I have had no comments enabled since I have moved my blog to hexo. There are some solutions with Disqus available, but I thought it is a good chance to build it myself.

First of all I created a new storage account in Azure to store all comments in table storage which is simple, easy to use, cheap and fast.
Then I needed an API which stores and retrieves the comments from the table. Azure Functions is perfect, because it has ready-to-use templates for HTTP POST and GET with table storage. It generates a url to call the functions.
In my javascript within this blog I have added a few lines of code to add and render existing comments.

It is a first try and the design is awful, but it works. I will monitor it over the next few weeks and see if it works or if I move to something like Disqus.

Leave a comment