An open API service indexing awesome lists of open source software.

https://github.com/agrueneberg/crumbs

A CouchApp that imports CSV files to CouchDB.
https://github.com/agrueneberg/crumbs

Last synced: 2 months ago
JSON representation

A CouchApp that imports CSV files to CouchDB.

Awesome Lists containing this project

README

        

Crumbs
======

[![Project Status: Inactive - The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.](http://www.repostatus.org/badges/0.1.0/inactive.svg)](http://www.repostatus.org/#inactive)

Crumbs is a CSV importer for [CouchDB](http://www.couchdb.org).

Crumbs is different from other import solutions in that it is served as an attachment to a CouchDB design document. The [File API](http://www.w3.org/TR/FileAPI/) of HTML5 allows the browser to read one or more input files directly from the local machine without any uploads and additional server-side logic. Crumbs is even able to process large files without affecting the user experience; its implementation as a [Web Worker](http://www.w3.org/TR/workers/) pushes the workload in the background.

Installation
------------

Clone this repository and use [CouchApp](http://couchapp.org) to push Crumbs to `/`:

git clone https://github.com/agrueneberg/Crumbs.git
couchapp push Crumbs/ http:///

Alternatively, replicate [an existing deployment of Crumbs](https://couchdb.gutpassfilter.de/crumbs/) to `/` using `curl`:

curl\
-X POST\
-H "Content-Type:application/json"\
-d "{\"source\":\"https://couchdb.gutpassfilter.de/crumbs\",\
\"target\":\"http:///\",\
\"filter\":\"vacuum/rw\"}"\
http://localhost:5984/_replicate

Import
------

After installing Crumbs, point your browser to `//_design/crumbs/import.html`, select one or more CSV files and click `Import files`.