I have an existing Firebase application (Which was built for quick prototyping and which is now grown big, I don't intend to move because existing dependencies and also because ease of use and authentication tied up) and I am trying to build a Rest API using FeatherJS.
It seems it is really easy to work with FeathersJS if you are using a standard database (MongoDB, etc). How can I integrate Firebase with Feathers keeping the best practices in place (Service Architecture, AOP)? Can I override service in Feathers and map it to my Firebase Rest endpoint?
I created a custom service in Feathers and tried doing this :
get(id, params) {
return Promise.resolve(FirebaseRef.child(id).once('value'));
}
I get the:
Converting circular structure to JSON error
Is what I am doing correct?