There is an example of express integration on the Horizon.io Github as shown here: Horizon express server example
I understand what this example is showing: if you h
You need to create express/koa/hapi server, where you include horizon/server and provide your own implementation for custom API endpoints.
Read more here: http://horizon.io/docs/embed/
To access the collections of Horizon you can use the @horizon/client.
npm install --save @horizon/client
in server side code:
const Horizon = require("@horizon/client/dist/horizon");
const horizon = Horizon();
And then you can use the Horizon API:http://horizon.io/api/horizon/ for things such as connection, Auth, and users; then use the collection API: http://horizon.io/api/collection/ for getting access to the same collections that the client accesses.