Open Source Project.
It’s completely OpenSource (Apache 2.0) and you can clone it from:
- https://bitbucket.org/clementmouchet/longhorn-js-client (mirror)
It supports all the API features of Okapi Longhorn
This project was bootstrapped with Create React App.
As usual I’ve used Docker to containerized the application for Development, and facilitate running both the API (.war) and the Node servers at the same time, solving CORS issues etc. by using an Nginx server as a reverse proxy.
I’ve also played with Heroku a bit and their Docker deployment which I really like for Demo
I’ve deployed a custom build of Okapi Longhorn on Heroku: https://okapi-longhorn.herokuapp.com/okapi-longhorn/ using Docker and a Jetty Runner dependency.
There’s also various other deployment examples,
- https://clementmouchet.github.io/longhorn-js-client using GitHub gh-pages static deployment.
- https://longhorn-js-client.herokuapp.com using a Node Server on Heroku.
The last two use the API from the custom build of Okapi Longhorn with a proxy in the middle to that adds the CORS headers (this is a dirty hack, but it’s just a demo)
Find out more in this blog post