Adminion has been written almost exclusively on ubuntu and depends on node.js v0.10.x, OpenSSL, MongoDB, and a number of 3rd-party node modules. If anyone wants to try it on windows or mac, please let me know the results :)
The easiest way to get (and later update) adminion is using git (the amazing, time-traveling source-code manager!):
# cd /where/you/want/it/
# git clone https://github.com/adminion/adminion.git
I suppose you could download a zip of the current (or any previous) commit, but I would advise against it. It probably won't work and will crash with exceptions thrown. If you can get to the bottom of the problem, it will likely NOT be obvious where I was going or what I was attempting to accomplish... and then if you make any changes, you're going to have one hell of a time merging my updates. But why go through all that trouble, when git will do it for you?
It might be a better idea to download a zip once my release versions actually equate to something more substantial than "a lot of progress in a short period of time; probably still crashes, though! :D".
Good things come with patience.
Now enter the new adminion directory and run the setup script inside the setup folder to install:
# cd adminion/ && ./setup/setup.sh
The server should now start, unless of course i told it to do something that would prevent it from doing so...which is likely:
# adminion
All server configuration options are defined within config.json. If an option is omitted, the default value found within config.default.json will be used:
{
"debug": false,
"cacheUpdateInterval": 300000,
"host": "localhost",
"https": true,
"cert": ".ssl/adminion-cert.pem",
"key": ".ssl/adminion-key.pem",
"mongodb": "mongodb://localhost/adminion",
"port": "1337",
"serverName": "Adminion",
"session": {
"cookie": { "maxAge" : 18000000 },
"secret": "$4$1M1KLxrb$h0ynxcy1IZ0wQltG+iqdYZCmcfg$"
},
"workers": 1
}debug: toggles debug output. When set to true, debug is enabled with its default configuration, however an object with configuration settings may be specified--see lib/debug.js for more details. default:falsecacheUpdateInterval: the frequency, in seconds, that the database cache is updated. default:300// 5 minuteshost: network address to be used. default:localhosthttps: turns on or off SSL encryption. see SSL below for details. default:truecert: path to the certificate. see SSL below for details. default:.ssl/adminion-cert.pemkey: path to the public key. see SSL below for details. default:.ssl/adminion-key.pem- `mongodb
port: port number to be used. default:1337serverName: name of the server. default:Adminionsession: an object of options passed to express.session()
Debug messages are disabled by default, but contributors may find them useful.
marker: A "marker" (---------) will be printed before and after each debug message enhancing visibility. default:falseprintStack: print stack traces with each message / variable output. default:false
{
"marker" : true,
"printStack" : true
}By default, the server employs ssl using .ssl/adminion-key.pem and .ssl/adminion-cert.pem.
If you want to disable SSL encryption, simply set the ssl option to false:
{
"ssl" : false
}You may specify the path(s) to your key and/or certificate:
{
"ssl" : true
, "cert" : "myServer-cert.pem"
, "key" : "/path/.to/myServer-key.pem"
}The example above will prompt the server to use ./myServer-cert.pem and /path/.to/myServer-key.pem.