Skip to content

pouchdb/pouchdb-fauxton-logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pouchdb-fauxton-logic

Build Status

This repository contains the JavaScript that's added to pouchdb-fauxton-base to make a working version of Fauxton running on top of PouchDB.

It does that by injecting a mock XHR object in the Fauxton page, which converts all requests made by Fauxton into CouchDB request objects. These are then converted to PouchDB method calls by pouchdb-route. The result is a CouchDB response object, which is returned by the mock xhr object as the response to the request.

Demo

https://ma.rtendevri.es/fauxton/

Tests

npm install #first time only
npm test

Building

First, make sure the /fauxton directory contains the result of a build of pouchdb-fauxton-base.

There are different ways to build PouchDB-Fauxton. The basic one is:

npm install #first time only
npm run build

Put the /fauxton directory somewhere on a web server, and that's it!

If you want to build a version of pouchdb-fauxton for use in a Firefox add-on or Chrome extension, check out their respective repositories for information on that.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages