couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Bénel <aurelien.be...@utt.fr>
Subject Re: Return web request via GET with a specific format
Date Fri, 05 May 2017 05:23:32 GMT
Hi Noel,

> "error":"compilation_error","reason":"Expression does not eval to a function.


We could analyse the JSON manually, but as your application will get bigger,
it will become more and more complex.
As I wrote earlier, I recommend you to use a tool like couchapp (http://github.com/couchapp/couchapp).

The idea is to convert a folder with subfolders and files into a design document.
In your case it would be something like: 

- doc / 	(weird name for a design document…)
  - views
    - map
      - nv.js
  - lists
    - lightning.js

Documentation is there:
    https://couchapp.readthedocs.io/en/latest/couchapp/gettingstarted.html

Note that, with couchapp, you are not obliged to generate a complete « app », but maybe
it’s easier to begin with.


Regards,

Aurélien 
Mime
View raw message