Questions tagged [kanso]

Kanso is a framework for developing full CouchDB-based applications.

CouchDB is a document-based storage engine which allows running complete web applications implemented in JavaScript from the database itself. Kanso is a framework which aids in developing such applications. It is heavily inspired by npm.

Features

  • Offline capability: when the cloud's not there, your app will be - flexible data synchronization
  • Multi-platform: runs anywhere with CouchDB (Windows, OSX, Linux, Android and iOS)
  • Deployment: effortless to deploy, to the cloud or local machines, promoting quick iterations
  • Keep your data yours: now you can keep sensitive data in-house, and avoid sharing it with cloud services
  • Real-time: add live page updates from multiple users with the built-in changes feed
  • Scalability: easily grow from hobby-project to high-demand app with CouchDB
  • Easy to distribute: apps are easy to share and distribute, between people and servers
  • One language to rule them all: with just CouchDB and the browser, all you need to speak is JavaScript!
12 questions
10
votes
3 answers

How to Write Unit Tests for Kanso

I've written a lot of django applications and become accustomed to extending unittest.TestCase and running python manage.py test app_name. Is there a similarly simple way to unit test Kanso apps? Please provide a minimal example. Thanks.
nrw
  • 819
  • 2
  • 7
  • 22
4
votes
2 answers

how to use html templates in CouchDB

I've been searching everywhere trying to figure this one out. I'm trying to generate html pages from couchdb show and list functions. I'd like to leverage underscore.js's template solution. The part I'm getting stuck on is how to include html…
Costa Michailidis
  • 7,691
  • 15
  • 72
  • 124
3
votes
1 answer

Error: failed to fetch from registry: kanso

While Im in the process of configuring Kleks i wanted to install kanso according to this github article. I successfully installed the npm and try to install kanso afterword, This is the command that used: stratos@Dev-PC:~$ sudo npm install -g…
tk_
  • 16,415
  • 8
  • 80
  • 90
2
votes
1 answer

using haml/jade in kanso couchapp

following this post, I took a look at kanso. From this I learnt that people are not afraid to load to the database context complicated modules if they need them, and that encouraged me a lot. So I tried kanso. It gave me some trouble that implied…
Radagast the Brown
  • 3,156
  • 3
  • 27
  • 40
2
votes
1 answer

Using underscore.js in Kanso

Kanso.js is a tool to easily let you build couchapps. As can be read in the documentation it includes the underscore.js module. But how can I exactly make use of the underscore.js methods in, let's say, a list view? Do I have to require it first?…
Maarten
  • 635
  • 2
  • 8
  • 22
1
vote
1 answer

Temporary view works, /mydb/_design/mydesigndoc/_view/myview doesn't. Why?

Hi! New to web developing in general, couchdb in specific. Right now I try to understand how to call views. I have fairly simple documents generated and submitted to the my database through an app based on Simplest possible form found on Kan.so and…
Pea-Pod
  • 79
  • 9
1
vote
1 answer

CouchDB, Kanso, File Upload Error

I'm trying to attach files to CouchDB documents when they are created. This is the HTML code:
1
vote
0 answers

Save JSON documents on couchdb from javascript using kanso

How can a JSON document be saved on couchdb using "db" package in kanso through your javascript code? This is what I've tried but it doesn't work: var db=require('db').use('it'); db.saveDoc(doc, function(err,response) { if(err) { …
1
vote
1 answer

Where can i find a list of couchdb apps?

I already know http://www.couchapp.org/page/list-of-couchapps. I can't find a list of kanso made apps or even reupholster apps and i bet there are more. Shouldn't there be a site with all the apps that run on couchdb?
vkefallinos
  • 717
  • 1
  • 9
  • 24
1
vote
0 answers

Prevent mobile Safari from showing loading indicator while _changes listener is active

The Setup After a page finishes loading, I'm adding a _changes listener to a couchdb longpoll feed (just in case it matters, I'm using this function in the Kanso db module). Once the listener is added, mobile Safari's loading indicator starts…
nrw
  • 819
  • 2
  • 7
  • 22
0
votes
1 answer

$.couch.db().openDoc() & db.getDoc are asynchronous, right?

Trying to call methods of subject and that works splendid, I reach whatever info needed from the docs requested within the methods. Now I want to use that information outside of the methods and whenever I try that the variable come out…
Pea-Pod
  • 79
  • 9
0
votes
2 answers

$=require('jQuery') results in 'window not defined'. What to do?

I am fiddling around with a 'list'-function in couch handling linked documents. Documents and their linked 'neighbors' are screened. It works all fine. So, I thought I would extend it a little and let some representative 'neighbor'-data be screened…
Pea-Pod
  • 79
  • 9