kinto / elm-kinto Goto Github PK
View Code? Open in Web Editor NEWAn Elm client for the Kinto API
Home Page: http://package.elm-lang.org/packages/Kinto/elm-kinto/latest
License: Other
An Elm client for the Kinto API
Home Page: http://package.elm-lang.org/packages/Kinto/elm-kinto/latest
License: Other
This might not be easy: pagination uses continuation token headers. Need to think about what the dream api would look like, and see how usable and feasible it is.
We need to fix this :)
Hi! I am new to elm.
I want to write an app for managing family budget in elm. I did that already using react native + firebase, and I am sad about where I get there. I need to sync data between devices.
This library looks right direction to go. Did any one thought already thought about implementing
I know that there is no solution to talk to storage apis of browser directly from elm as of now, and the recommended approach to use IndexedDB in elm app is ports.
I thought that there may be elm-kinto-offline fork, for now, that require to manually plug in some js to make it work. And may be in future, when elm will provide a way for data persistence ports can be replaced with it and elm-kinto-offline can become elm-kinto
I probably get that questions I am asking here are not directly target to solve my problem (write an app for managing family budget in elm) and solution for that is just use pouchDB / relay / kinto.js via ports. I am doing that because of desire to make contribution for elm ecosystem. But if spending time on topic above is useless, better to take a look for opportunity to contribute some other way.
I have been reviewing Kinto as an alternative to Firebase + Elm. I also like Kinto being implemented in Python. Being also a Python programmer this give me the opportunity to do server side stuff if necessary. I miss that opportunity in Firebase.
What would definitely win me over is an example in Elm with notifications. For example, in the existing example. I open two browsers, I would create a record in browser A and this record would automatically show up in browser B. Also record updates would immediately be reflected in both browsers.
Thanks very much in advance for winning me over ;-)
Berry
The Pager API is exactly what one's need to fetch a list of Records.
However on time to time you wish to update the list, and it would be nice to be able to use the ETag to refresh the list without reloading the whole collection.
My understanding is that the Pager object is not far from being able to handle that.
Reference: http://docs.kinto-storage.org/en/stable/tutorials/synchronisation.html#polling-for-remote-changes
The headersForAuth for NoAuth returns a tuple of empty strings but an empty string is a invalid header name.
-- Configure a Kinto client: the server url and authentication
client : Kinto.Client
client =
Kinto.client
"https://kinto.dev.mozaws.net/v1/"
(Kinto.Custom "Portier" "portier-user-session")
Choose one form and use it everywhere, eg:
The current hack where we inject the stylesheet at runtime is not satisfying; we need to find a way to provide a custom HTML template to elm-reactor, or at least a way to tell the one it generates to use a custom stylesheet.
Reference Elm issue: elm-lang/elm-reactor#138 (some tricks are listed in the comments)
As can be seen in the documentation, we have different casing for the different predicates. We have some uppercase ones (LT, GT, IN, NOT, LIKE, SINCE, BEFORE) and some title cased ones (Equal, Min, Max).
In elm-kinto 6 we added the Pager, which makes it really hard to get started with elm-kinto especially for beginners.
I'd like to get back a simpler kinto client that doesn't need to worry about the Pager.
The same way that we have program and programWithFlags, we could have KintoClient and KintoClientWithPager.
See http://package.elm-lang.org/packages/Kinto/elm-kinto/6.0.0 which still uses the old API sortBy
instead of the new sort
.
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.