Skip to content

mjmottram/stool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

stool

like a couchapp, only with a euphamistic name.

To create a database, run ./stool -n -s -d Where points to a directory in which all design documents are held. Each design document should be a new sub-directory, with each document parameter (e.g. views) a sub-directory of this. For example:

Two design documents will be created, one is called D1, the other D2. These are held in the folder:

/home/user1/NewCouchDB

D1 contains two views, each with a map and reduce function, called V1 and V2. The directory structure would be:

  • /home/user1/NewCouchDB/D1
  • /home/user1/NewCouchDB/D1/views
  • /home/user1/NewCouchDB/D1/views/V1
  • /home/user1/NewCouchDB/D1/views/V1/map.js
  • /home/user1/NewCouchDB/D1/views/V1/reduce.js
  • /home/user1/NewCouchDB/D1/views/V2
  • /home/user1/NewCouchDB/D1/views/V2/map.js
  • /home/user1/NewCouchDB/D1/views/V2/reduce.js

D2, meanwhile, contains one view (V1) but also has some attachements (index.html and a css folder with styles.css):

  • /home/user1/NewCouchDB/D2
  • /home/user1/NewCouchDB/D2/views
  • /home/user1/NewCouchDB/D2/views/V1
  • /home/user1/NewCouchDB/D2/views/V1/map.js
  • /home/user1/NewCouchDB/D2/views/V1/reduce.js
  • /home/user1/NewCouchDB/D2/attachments
  • /home/user1/NewCouchDB/D2/attachments/index.html
  • /home/user1/NewCouchDB/D2/attachments/css
  • /home/user1/NewCouchDB/D2/attachments/css/styles.css

About

like a couchapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages