Add americano-cozy to the list of your plugins in the Americano configuration file. Then add it as a dependency of your project:
npm install americano-cozy -g
Do no think about including JugglingDB and its configuration for Cozy anymore, Americano Cozy does the job for you:
americano = require 'americano-cozy'module.exports = americanogetModel 'Task'done: BooleancompletionDate: Date
Describe your Data System requests in a single file:
# server/models/requests.coffeeamericano = require 'americano-cozy'module.exports =task:all: americanodefaultRequestsallanalytics::if doccompletionDate? and docdonedate = doccompletionDatedateString = "-"dateString += "-"emit dateString1:sum values
What about contributions?
Here is what I would like to do next:
- write tests
- remove async from the dependency (use recursive functions instead)
- make Data System URL configurable
I didn't start any development yet, so you're welcome to participate!