Category Archives:

Adding a RESTful API on a Unix Domain Socket to a MEAN Stack Application

Why would you want to do this? Well, it provides the ability to expose your API to command line utilities.  For example Docker does this exact same thing for it’s CLI.

Here is an example server API layered on a default MEAN stack scaffold app.js:

Here is an example command-line client, using Node.js, that accesses the above server API:

Finally the results of running the cli:


Howto edit top-left logo in appserver from a custom package module

This is easy.  In the core system package’s public/views/header.html you will find the default pull-left div containing a <a> tag with a value of “MEAN”, which is displayed in the top-left of your website:

We can edit this dynamically via the “mean-token” argument using an AngularJS directive (in your custom package’s public/directives/ folder) like this: