Skip to content

rwaldron/jquery-plugins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Plugins Site CouchDB System Design Documentation

Example URLs to test the source paths:

##Every plugin has a pluginType field with one of these values:

  • "public",
  • "jquery"
  • "jquery-ui"

###To get all the plugins of a certain type, you go here: http://plugins-v3.jquery.com:5984/plugins/_design/app/_view/byType

The keys are an array of ["TYPE", "plugin name"], which results in plugins of the same type also being grouped by their names. So, if you wanted all of the public plugins, you'd go to:

http://plugins-v3.jquery.com:5984/plugins/_design/app/_view/byType?startkey=["PUBLIC"]&endkey=["PUBLIC",{}]

Full text searching with couchdb-lucene (v0.6.0) can be a bit funky if you're not used to lucene. The [semi-poor] documentation is available at

https://github.com/rnewson/couchdb-lucene/blob/v0.6.0/README.md

Some example lucene queries

Full text search for the string "bwah":

http://plugins-v3.jquery.com:5984/plugins/_fti/_design/app/plugins?q=bwah

Full text search for the string "bbq", and telling couchdb-lucene to include the full doc for each result:

http://plugins-v3.jquery.com:5984/plugins/_fti/_design/app/plugins?q=bbq&include_docs=true

There is also a special field in the index for pluginType, so you can choose to restrict search results by the type of plugin. For example (including docs):

http://plugins-v3.jquery.com:5984/plugins/_fti/_design/app/plugins?q=cowboy%20pluginType:PUBLIC&include_docs=true

About

The New jQuery Plugins Site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 64.4%
  • JavaScript 35.6%