Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Port your Cozy App to Cozy Light

Frank Rousseau edited this page Jan 8, 2015 · 3 revisions

Porting your app to Cozy Light requires two basic operations:

  • Change americano-cozy plugin to americano-cozy-pouchdb
  • The change should be done in the package.json file, in the Americano config file and in the models requirements.
  • Add two fields to manifest:
    • displayName: the name displayed in the dashboard
    • type: put "classic" in this field
  • Oncee done, create a start function in your main module:
var express = require('express');

module.exports.start = function (options, callback) {
  options.port = options.port || process.env.PORT || 9104;
  options.host = options.host || process.env.HOST || '127.0.0.1';

  americano.start(options, function (app, server) { 
    callback (null, app, server);
  });
}
Clone this wiki locally