Commit 9a58b75ae70cb562daad4d67cfa777ae8aa48459
add feathers client
Michael Williams committed on 1/8/2016, 5:33:04 AMParent: 0c2f565b454264e4e4db00002147daba0a150b64
Files changed
app/client.js | added |
package.json | changed |
app/client.js | ||
---|---|---|
@@ -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.json | ||
---|---|---|
@@ -99,13 +99,15 @@ | ||
99 | 99 | "ecstatic": "^1.4.0", |
100 | 100 | "envify": "^3.4.0", |
101 | 101 | "evalify": "github:ahdinosaur/evalify#minimatch", |
102 | 102 | "feathers": "^2.0.0-pre.1", |
103 | + "feathers-client": "^0.5.0", | |
103 | 104 | "feathers-hooks": "^0.5.1", |
104 | 105 | "feathers-knex": "^2.0.0", |
105 | 106 | "feathers-rest": "^1.0.0", |
106 | 107 | "feathers-tcomb": "^1.0.0", |
107 | 108 | "history": "^1.13.1", |
109 | + "isomorphic-fetch": "^2.2.0", | |
108 | 110 | "lnfs-cli": "^1.0.1", |
109 | 111 | "npm-run-all": "^1.3.2", |
110 | 112 | "pg": "^4.4.3", |
111 | 113 | "pinkie-promise": "^2.0.0", |
Built with git-ssb-web