Foxx with Sails ?

62 views
Skip to first unread message

arangoneo

unread,
Dec 13, 2015, 9:03:08 PM12/13/15
to ArangoDB
Is it a good idea to use foxx with sails.js and vice versa ?

Are foxx and sails compatible in the same web app ?

What options do we have in this regard ?

Alan Plum

unread,
Dec 14, 2015, 5:31:33 AM12/14/15
to ArangoDB
Hi,

I'm one of the developers of the Foxx and JS driver teams at ArangoDB.

There is a community maintained sails.js ORM adapter for ArangoDB available at https://github.com/gabriel-letarte/sails-arangodb

Lucas has also written a cookbook recipe for using ArangoDB with sails: https://docs.arangodb.com/cookbook/UsingArangoDBWithSailsJS.html

I'm not aware of any direct integration of Foxx in sails, but as Foxx lets you implement your own HTTP API on top of ArangoDB it shouldn't be different from using any other HTTP API within sails.

It is possible to use ArangoDB purely as a REST database without using Foxx at all.

It is also possible to implement your own domain-specific HTTP API on top of ArangoDB using Foxx and not make any use of the built-in REST API at all.

Which approach works best depends on your project's needs and how comfortable you are with offloading certain parts of your app into the database using Foxx.

I don't have any experience with sails.js personally but I don't see any reason you shouldn't be able to use Foxx and sails in the same project.

Hope that helps.


Cheers,

Alan
Reply all
Reply to author
Forward
0 new messages