Re: Răspuns: Deploying Single Page Application(SPA) with CouchDB

2016-03-29 Thread Martin Broerse
Hi Darryl, My suggestion: I run `ember deploy production` using https://www.npmjs.com/package/ember-cli-deploy-couchdb and https://github.com/nolanlawson/ember-pouch to deploy my Ember App on CouchDB. So on http://bloggr.exmer.com/ the ember app runs in the same cloudant database as the data.

Răspuns: Deploying Single Page Application(SPA) with CouchDB

2016-03-29 Thread Dragos Stoica
This works for both SPA (highly recommended) and MPA (vintage apps) What our team implemented until now is: 1) plain appcache - the application files, that can be used offline, are cached on the browser. When you need to update application files just modify appcache manifest file. There is a

Re: Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Giovanni P
using this second approach you can also use PouchDB for better flow. 1. users go the hosted SPA in your URL; 2. the first time they load the page, due to the presence of an appcache, files will be stored in the browser and remain accessible when offline; 3. they can start inputting data or doing

Re: Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Giovanni P
2 is probably your best option. Just use attachments. /db/doc/index.html better yet, if possible: host the static files for the SPA yourself, use the HTML appcache so the files will be avaliable for the users even when offline, then let the users input their own CouchDB URL/passwords in the app.

Re: Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Joel Wallis Jucá
Hi Darryl. By "deploying a CouchDB to an end users computer" you mean the client side? Because if you do, I think you would be interested in PouchDB. You can build a desktop app with Electon (HTML/CSS/JS) and use PouchDB to store local data (offline apps), and later sync them with your CouchDB

Re: Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Kyle Snavely
Hi Darryl, I've had really good luck using Python Flask web services supported by a CouchDB (Cloudant) backend. That will expand your target support from Windows to most platforms, and might be less overhead if you're talking about a fairly simple application. I've been down the couch-app route

Deploying Single Page Application(SPA) with CouchDB

2016-03-27 Thread Darryl Wagoner
I have been tinkering with CouchDB for about a year and I really like it. What I have been able to find out the best way to do is deploying a CouchDB to an end users computer. I expect the end users to be fairly dumb. During the key times they application will be used, Internet may or may not be