I'm starting to develop a new little js app that consumes a WordPress REST API. The new client app will not be on the same WordPress installation (let's assume that will be a simple JS script hosted in an web page elsewhere).
We'd love to use the "official" Backbone WP REST API client: it will facilitate a lot the development of the app.
Do you know if and haw we can install the Backbone client "outside" a WordPress installation?? where we can download it? Until now we only have used it for WordPress themes, and it comes "included" in the WordPress installation.
Some context information, if you need it:
We already have a WP Theme that interacts with the REST api endpoints, authenticating with nonces. And we have others "vanilla" js clients that authenticate with Basic Authentication over HTTPS. BUT The new client app will not be on the same WordPress installation.
We could go again with fetch() and plain "vanilla" js, but we'd love to use the Backbone client.
The problem is that we can't find a way to download it separately from WordPress and I'm neither sure it can works outside WordPress (maybe it needs other dependencies...)
Con someone point me in the right direction?
I'm also considering the use of http://wp-api.org/node-wpapi/ but I don't know if it's still maintained...
fetch()
directly on the API and this would more than suffice for small JS apps. As for "better", asking that would take your question firmly into the realm of discussion and recommendations which would make the question offtopic