kaalita / hoodie-ios Goto Github PK
View Code? Open in Web Editor NEWiOS port of Hoodie http://hood.ie/
License: Other
iOS port of Hoodie http://hood.ie/
License: Other
To be consistent with Hoodie Web, the generated Hoodie ids should be implemented the same way on iOS.
Reference implementation:
https://github.com/hoodiehq/hoodie.js/blob/master/src/utils/generate_id.js
Requires #5 to be implemented first
Hey there.
I've been searing for a way to combine hoodie and react-native, and I think I've come pretty close with your iOS port for hoodie. However. Since I have close to zero understanding of Objective-c, I'm having trouble setting it up correctly.
React-native can import and use Objetive-c classes which I have somewhat figured out, and I'm curious if it would be possible to simply reference an instance of hoodie through this method in the JavaScript part of react-native.
But as I said, I'm have pretty much no knowledge of Objective-c, so if you could tell me if this is possible or even help me out (aka explain it to me like I'm five) that would be amazing!
Regards
Patrick
Hoodie-iOS does not replicate my use-Data.
Though registering a new user is working.
The POST-command for a new session always works.
But the GET-command always fails with:
{"error":"unauthorized","reason":"Name or password is incorrect."}
I am using:
HOOHoodie 0.2.1
CouchbaseLite/1.495
Hoodie Version: 0.4.10 (node v0.10.28, npm 1.4.10, platform: darwin)
CouchDB 1.5
What's wrong?
in the web client (hoodie.js), you simply do hoodie = new Hoodie('http://myhoodie.com');
, the /_api
gets added automatically.
I think this is an implementation detail that should not be exposed in the API
// Change is URL to the location of your Hoodie Server
NSString *baseURLString = @"https://domain.tld";
http://domain.tld just works fine
Currently the hoodie objects are NSDictionaries. What would be good fits for an object model for Hoodie? Is the one that Couchbase Lite provides a good fit?
All objects of the anonymous local user that were created before signing in should be updated, so that the attribute "createdBy" is changed to the hoodie Id of the signed in user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.