Skip to content
/ sofo Public

Access to couchbase REST APIs via Elxiir (cbfs, sync_gateway, etc.)

License

Notifications You must be signed in to change notification settings

nirvana/sofo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

sofo

"sofo" is Couch in Esperanto. Or so I hear.

Status: Researching. Development not yet started. Currently on hold as other work takes priority.

Purpose

REST access to Couchbase related APIs.

The couchbase ecosystem provides several miscellaneous APIs. For example, sync_gateway provides a REST API for accessing data it is syncing and for administering it. CBFS also provides access via REST. Couchbase 2.0 provides admin access via REST as well

CHALLENGE:

Create an elixir library that can be published to hex.pm

Needed functionality-

-- CRUD for access to data on the open port. -- Ability to load Views thru the sync gateway -- APIs that talk to the admin port (should be a seperate module from the public port) that:

  • add & update users and create sessions on the admin API
  • The elixir side will be maps, the data pushed to the database will be JSON. This is a JSON database
  • Have some way to support multiple "databases" (what sync_gateway calls them, couchbase calls them buckets) as we will be segregating some data this way. So the APIs can't assum the db name. -- Tests that test all of this.

Here's some docs:

You'll need to--

  • Get couchbase running on your machine
  • Get sync_gateway for your machine
  • Set up a bucket for the gateway
  • Make a elixir project called sofo, which will be mainly used to run the tests (check out elixirs built in unit testing framework

About

Access to couchbase REST APIs via Elxiir (cbfs, sync_gateway, etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published