Getting started with JanusGraph Database, NodeJS and GraphQL - node.js

I'm searching on the web without any luck on how to fetch data from the JanusGraph database using GraphQL in NodeJS.
On Janusgraph.org, they have only shown how to use it with Javascript.
Can someone help me with how to use these technologies together?

Related

How to connect to a SnappDb from NodeJs?

I'm creating a database visualizer in the React/Node app to connect the different databases. I'm able to connect all the standard databases, MySQL, MSSQL, Postgres, Cassandra, etc. I'm looking for the connector for SnappyDb for nodeJs which I didn't get on Google but it is available for Java (JDBC). Any suggestions or alternative approaches appreciated.

How can I decide if I should use a NoSQL vs a SQL database engine?

I plan to build an app using Node.js as my Rest API Service and Angular for my Admin side.
I've tried to create Rest API using Node.js with MongoDB as my database server.
MongoDB is a transactional DB, not a relational DB. So my question is, is MongoDB not good as my database server because it's a transactional DB? (for storing all data let's say data for e-commerce)? How can I know which one to use, MongoDB or a regular SQL database.
Thanks for your answer.
You have a couple of concepts wrong.
First, Angular is a frontend framework not a backend. Angular runs in the browser. Perhaps you mean you will use as your "admin" panel or whatever but it's a frontend technology. It will need to talk to an API server, which is the backend part.
Second, database engine selection is chosen depending on the system non-functional requirements. There are plenty of articles you can research so that you can make the decision, such as this one from MongoDB official site. There's also a video on it too.

What potholes are there Using Graphql with RethinkDb?

As I understand it's possible graphql with rethinkdb. You can use graphql to query really any data set as its just the middleware really. What issues do I need to watch out for in this implementation? Server will be node.js in my case.
Documentation / examples of others doing this seam lacking.
I'm using GraphQL together with RethinkDb and don't see any particular problems in using them together compared to an implementation of a rest api or using mongo etc.
Here are two github projects using GraphQL and RethinkDb (the first one is more lightweight):
Isomorphic Material Relay Starter Kit
meatier

Using dc.js with node.js

Is it possible to use dc.js with node.js, and if so how? I would like to provide an example, but it's hard to see how to start on this, and no working examples seem to be available online.
In short, yes.
I have implemented a full fledged app using nodejs and dc while the document store was mongo. The nodejs server is used for fetching the data from mongo db and serving it as api. Dc.js then uses this data for rendering charts.
I will write a blog post about it and post it in a couple of days. In the meantime do let me know if you have any more queries.
Updated:
Here is the link to the blog post.Do share if you find it useful.
https://anmolkoul.wordpress.com/2015/06/05/interactive-data-visualization-using-d3-js-dc-js-nodejs-and-mongodb/

Best way to set an API server using Node.js and Postgres?

I'm new in Node.js. I'm trying to find out and learn which is the best way to set an Api Server, just for CRUD (Create, Read, Update and Delete) requests.
I've being looking around the different server frameworks that are normally used with Node.js:
Express
Restify
Hapi
I'm also using the node-postgres library already connecting to the database and making queries, but I haven't found a good guide or example using either of the previous frameworks to set an Api Server with PostgreSQL.
I'd be very thankful is someone could point me to the right direction or show me a basic example.
Thank you
Hapi has the best performance. Otherwise I hope this can help you:
http://blog.newrelic.com/2014/08/15/node-js-frameworks-hapi-js-restify-geddy
http://blog.nodeknockout.com/post/34571027029/making-an-api-happy-with-hapi
http://blog.modulus.io/nodejs-and-hapi-create-rest-api

Resources