Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luandro/falcor-couchdb-api
Express Json Graph API using Falcor and CouchDB
https://github.com/luandro/falcor-couchdb-api
Last synced: about 6 hours ago
JSON representation
Express Json Graph API using Falcor and CouchDB
- Host: GitHub
- URL: https://github.com/luandro/falcor-couchdb-api
- Owner: luandro
- Created: 2015-11-24T20:58:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T21:01:11.000Z (about 9 years ago)
- Last Synced: 2024-04-23T21:34:08.940Z (9 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Falcor CouchDB api
A simple example on how to combine [Falcor](http://netflix.github.io/falcor) with a [CouchDB](http://couchdb.apache.org/)(using [cradle](https://github.com/flatiron/cradle)) database to serve a [Json Graph](http://netflix.github.io/falcor/documentation/jsongraph.html) api.
## Usage
Make sure you have CouchDB installed and running.
```
git clone https://github.com/luandro/falcor-couchdb-api.git
cd falcor-couchdb-apinpm install
npm run dev # start express server with nodemon
```The first run may throw an error saying the database doesn't exist, just run it once again. Try passing a url with path params like ```[ characters ,{ from :0, to :4}, name ]``` and a method params ```get ``` to ```http://localhost:3000/model.json```and see the response.