Skip to content

sklassen/couchdex-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couchdex-example

These are example couchdb design documents.

You can use couchdex, see https://github.com/sklassen/couchdex to upload the git repository into couchdb.

The Makefile creates a database.

There are two design documents, javascript and erlang. Both generate the same views.

The Makefile also has several examples.

sudo snap install couchapp-sklassen

CouchDB configuration need the native erlang views switched on in the local.ini

[native_query_servers]
enable_erlang_query_server = true

Then you can try the URLs to access the view, list, show and update functions.

http://localhost:5984/example/_design/erlang/_view/index?reduce=false&limit=100 http://localhost:5984/example/_design/erlang/_list/csv/index?reduce=false&limit=100 http://localhost:5984/example/_design/erlang/_show/id/A http://localhost:5984/example/_design/erlang/_update/put/A?dt=2024-01-01&val=3.3

About

A couchapp design that uses both JavaScript and Erlang Views

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors