Markoa
Markoa consists of the following main parts:
- app
- app container
- server
- utils
To access each part, simply use the main markoa
object as follows:
let markoa = ;let app = markoaapp;// create new container instancelet appContainer = markoa;let server = markoaserverlet utils = markoautils
Server
It is super simple to setup the Markoa server with some basic settings:
let marko = ;let lassoFile = path;let staticDir = path;let app = markoaserver;
By default the koa server will use port 4000
if no settings are provided.
Local testing
Run npm link
from markoa root folder to link the package.
Then from an app or appContainer that uses markoa, use npm link markoa
to link the dependency, which creates a symbolic link in your node_modules
pointing to your local markoa package.
Now run npm install
from your app ;)