Dropit is powered by a CouchDB documented database. The application is thinked to be RESTful, and to work in a distributed way.
CouchDB comes with two important concept you should know about: views and documents. Please have a look at them before going further.
Keep in mind that with CouchDB infrastructure, you’re free to add informations to the documents in your own couchdb db copy, but because we need a common base to work on, here are the ‘specification’ of our documents.
There’s different kinds of documents, to distinguish between document types, we uses a doc_type field in all documents. Here are the full description of them:
Dropit consider having a table by user. As it’s pretty simple to create new databases, it seems to be a good idea.
Each database is named with the name of the user. for instance, the user alexis will have a db named alexis too, that belongs to him.
Please, refer to the Note’s specification document to get more informations about notes.
To work with these notes, Dropit! provides a set of views you can find in the _design folder on the dropit-common repository.