git ssb

1+

dinoworm ๐Ÿ› / catstack



Commit 9a58b75ae70cb562daad4d67cfa777ae8aa48459

add feathers client

Michael Williams committed on 1/8/2016, 5:33:04 AM
Parent: 0c2f565b454264e4e4db00002147daba0a150b64

Files changed

app/client.jsadded
package.jsonchanged
app/client.jsView
@@ -1,0 +1,11 @@
1+import feathers from 'feathers-client'
2+import fetch from 'isomorphic-fetch'
3+import Url from 'url'
4+
5+import config from 'app/config'
6+
7+const clientUrl = Url.format(config.api.url)
8+const client = feathers(clientUrl)
9+ .configure(feathers.fetch(fetch))
10+
11+export default client
package.jsonView
@@ -99,13 +99,15 @@
9999 "ecstatic": "^1.4.0",
100100 "envify": "^3.4.0",
101101 "evalify": "github:ahdinosaur/evalify#minimatch",
102102 "feathers": "^2.0.0-pre.1",
103+ "feathers-client": "^0.5.0",
103104 "feathers-hooks": "^0.5.1",
104105 "feathers-knex": "^2.0.0",
105106 "feathers-rest": "^1.0.0",
106107 "feathers-tcomb": "^1.0.0",
107108 "history": "^1.13.1",
109+ "isomorphic-fetch": "^2.2.0",
108110 "lnfs-cli": "^1.0.1",
109111 "npm-run-all": "^1.3.2",
110112 "pg": "^4.4.3",
111113 "pinkie-promise": "^2.0.0",

Built with git-ssb-web