summaryrefslogtreecommitdiff
path: root/client/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/client.js')
-rw-r--r--client/client.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/client.js b/client/client.js
new file mode 100644
index 0000000..1ed895c
--- /dev/null
+++ b/client/client.js
@@ -0,0 +1,13 @@
+import feathers from 'feathers/client'
+import feathersHooks from 'feathers-hooks'
+import feathersRest from 'feathers-rest/client'
+import feathersAuthentication from 'feathers-authentication/client'
+import superagent from 'superagent'
+
+const rest = feathersRest(window.location.origin)
+const client = feathers()
+ .configure(feathersHooks())
+ .configure(feathersAuthentication({ storage: localStorage }))
+ .configure(rest.superagent(superagent))
+module.exports = client
+