Set up environment
Assuming you are running homebrew up-to-date on a Mac, here is how you configure your dev environment
brew install mongodb
brew install nvm
brew install redis
brew services start mongodb
nvm install v4.6.1
nvm alias default v4.6.1
npm install -g bower
redis-server &
Install
npm install --save ohm
Usage
create a new file server.js
and create a config file.
(function() {
'use strict';
const config = require('./config.js');
const Ohm = require('ohm');
module.exports = new Ohm(config);
}());
Dependencies:
For Full details see package.json
My recommended frontend stack:
Contributing
Architecture
The server architecture is evolving more information to come.
├── client
│ ├── js
│ ├── images
│ └── sass
├── ohm
│ ├── apis
│ ├── config
│ ├── models
│ ├── ghost
│ ├── controllers
│ ├── routes
│ └── views
│ | └── bootloader.pug
├── static
├── package.json
├── gruntfile.js
└── ohm.js
Debugging
If you are using node-inspector the run command by default passes the necessary flag to attach to the debugger, but you must start node inspector like so first:
grunt node-inspector &