Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Comimoc Front AngularJS

Comimoc Front AngularJS is a front-end in angularjs part of the Comimoc project.

It is a simple AngularJS app that provide a front-end to Comimoc Back, easy to add and customise for any website.


  • list all comments of webpage
  • provide a form to add comments
  • i18n

How to...

use it?

Just look at the example file named index.html inside the src folder.

All you need is to declare the comimoc app...

<div ng-app="comimoc" ng-controller="CommentCtrl" ng-include="'./views/comimoc.html'"></div>

... add the angular dependencies (1.2.0-rc2, waiting for the ultimate stable release)...

<script src=""></script>
<script src=""></script>

... create the AngularJS Comimoc module...

    angular.module('comimoc', ['ngResource'])
        .constant('COMIMOC_CONFIG', {
            'RESOURCES_LOCATION':   '',
            'WEBSITE':              '',
            'HASH':                 false,
            'ARGS':                 false,
            'LOCALE':               'en'

... and add the comimoc app:

<script src=""></script>

You can see it uses a template named views/comimoc.html, use it, hack it, write your own, it is very easy. Also there is no CSS by default, so it is up to you to style it the way you like.

see it in action?

You can go to my blog where I am using it like so with just some CSS, nothing more.

set it?

You can pass some options when creating the comimoc module:

  • RESOURCES_LOCATION: it has to be the full url where comimoc back-end api is accessible. No trailing slash please.
  • WEBSITE: can be any string you want. It is here as the first element of the comments keys (website, page). It has to have significative meaning more than technical. It can be useful to separate comments from a same domain name but with multiple subsite without subdomain. e.g.: will load the app with WEBSITE='blog1' and will load the app with WEBSITE='blog2' but both can have the same RESOURCES_LOCATION.
  • HASH: Default is false even when not set. Set it on true if you want the location path after the hashbang set into the page key. Hash should be consider only if your website is an app (like angular app) with pages location define by hash for routage. Be careful about hash used for anchors, for tabs, etc. If set to true it could separate the comments of one page into multiple pages, and this is not what you want. e.g.: (2 comments) (1 comment) instead of (3 comments).
  • ARGS: Default is false even when not set. Like HASHBANG, set it on true if you really need this and be aware of side effects.
  • LOCALE: Default is 'en' when not set. It is used in the view for the view title, the form title and the button. Only en and fr exist but you can help me to add more locale.

Why Comimoc?

Comimoc stands for COMments In My Own Cloud. As I create my blog with Pelican to keep the control on my content and also having a very simple system with tools I know very well (Python and Github) I wanted the same for my comments. But I did not find it. A lot of people goes for Disqus but I think it is giving to much data and control. So I create Comimoc which is very simple, light and can be run on your own server or at Heroku or at Red Had Cloud OpenShift, etc. And for nothing! For a simple blog, running Comimoc on PaaS services cost nothing and you can backup your comments everyday.

So that's it, I wrote it and I am sharing it so everyone can use it and keep control on their own data.

Source code

You can access the source code at:

Feel free to dive in, hack in, contribute or ask features (You can ask, I might not add it).


Comimoc Front-end with AngularJS for the Comimoc project




No releases published


No packages published