I am working on mean stack. and i want to use orientdb instead of mongodb.
I just want to know how can I replace mongodb with orientDB.
OR
How can I customize mongoose so that i can use orientDB.
Thanks in advance.
MongoDB -> OrientDB Document Graph database server (I suppose you want to use the Document-Graph engine of OrientDB) with orientjs. So you do not customize mongoose, you must replace that driver by orientjs (the official Node driver for OrientDB).
Express -> Express
AngularJS -> AngularJs
Node.js -> Node.js
To get started (assuming you have experience with the EAN-part), first read the OrienDB Manuel and start "playing" with OrientDB, using the web based interface, called OrientDB Studio. A excellent introduction on Graph Databases is Graph Databases The Definitive Book on Graph Databases which can be downloaded for free. After that it should be easy to integrate it with Node.js using orientjs. To get started with AngularJS i highly recommend the Udemy courses "Javascript: Understanding the Weird Parts" and "Learn and Understand AngularJS".
UPDATE: oriento driver is deprecated, the official JavaScript client is now orientjs. This driver is maintained by Orient Technologies itself.
Related
Hello Stackoverflow fam,
I am working on android application, wherein the data entered from the app needs to be transferred to my remote Mongodb database, for this I am trying to develop Restful API using express js.
Now I am stuck in between on how to integrate the front end app to node js and mongo db
Kindly provide any reference documents/ tutorials which helps me understand the complete overview of it.
(I know the my problems seems too broad, but could'nt find any support online)..
Try mongoose. It's a best way to establish communication between node.js application/service and mongoDB.
Update: When I first started with this question I was basically struggling to understand what I needed to do in order to make my frontend interact with the backend.
To answer my own question in case new guys come in:
If you use ejs, you are using server side rendering, meanwhile if you work your frontend separated your backend, you'll mostly be working with APIs.
First learn Node. Than work your way through on how APIs work. After feeling comfortable, start learning React.
Yes its normal. Just start building a project or else you'll stay in that tutorial hell.
So I have basic knowledge about React, intermediate level on javascript... and now I have taken a node with mongodb course. So I know that, i'll be feeding my tutorial hell if I do not put all those together and start building something from scratch. But till now, I have only rendered the EJS files and know how to setup everything from the ejs view point.
So now I feel quite lost as if someone gave me a puzzle with missing pieces.
I know some of you guys have taken this road so I have a couple of questions, even though some sound quite stupid:
How can node code be affected introducing reactJs, because I am currently using res.render('ejsViewFile')?
When you guys first learned this approach for using the MERN Stack, how did you learn to connect both of them? I find a lot of tutorials... but they confuse me even more.
Is this normal... me feeling like I have learned absolutely NOTHING?
It's great to see such type of questions.
I have also developed web application in which I have to just use the node JS and react with multiple microservices.
so I am also going through from such tutorials on udemy and other tutorials that are available on the website.
I found out that you can use react JS as a front UI and you can use node JS for backend if you don't want to use spring boot for your microservices it is just fine.
So basically I have developed rest API in node JS and using axios and promise I am calling that API from my react applications so I think in that way you can connect both of the applications.
in most of the applications I have seen that node JS is used for security purposes in the following purposes and then node JS is connected to a microservice it is just kind of adding another layer over your application.
I prefer lead can tell you that you can go through the udemy courses of react JS and it will show you how you can create a rest API on the node JS.
React for UI
Nodejs: api gateway or backend. You wish
Java : microservices, rest apis
I want to build a self-hosted website with nodejs and the express framework because I'm already familar with that. However, using a CMS for this project is a requirement, so I'm looking for a suited and easy-to-use/-learn CMS and discovered strapi which I quite like.
Setting up an API with strapi is easy indeed but now I'm struggling with adding strapi to an express server. My goal is one express server with strapi, which also hosts the website. So, I can control the routing with express (which I'm used to) and can render the site on the server.
Can somebody explain me how to do that and maybe give a small example? The examples I found, are only about hosting the API externally and using a client-side web framework or a static site generator.
Or is my vision not possible with strapi and I should use another CMS like KeystoneJS (which is already built on Express)?
Thanks in advance!
Using Express with Strapi must be very complex and does not really make sense.
Strapi is based on Koa, which has been designed by the team behind Express. If you are coming from Express, eyou will get confortable with Koa very quickly. Here is the documentation: https://koajs.com.
I have been searching all over for a tutorial that could make a RESTFul API without using any frontend javascript to no avail. I am very new to Javascript/ web-development and have been doing many tutorials and mini projects to get myself acquainted with it.
This is a test for a job at a startup as they looking for an entry level developer. Their requirements are much different as they want me to use their in house build APIs.
What I am looking for is some help on how to get started building a RESTful API using node.js, express, Mongo and without using any frontend javascript. Thanks.
Recommendations for tutorials usually don't make good questions for Stack Overflow, but you might want to take a look at the following books. They helped me out quite a bit when getting started with Node:
Express Web Application Development
Advanced Express Web Application Development
RESTful Web API Design with Node.js
As others have commented, a REpresentational State Transfer API is implemented server-side. You could consume such an API from the client-side using JavaScript, but not build one on the client-side.
Express is a very popular web framework for Node, and you can certainly use it to build APIs, but you might also take a look at Restify. Hope that helps you out.
Its really confusing to setup the best project structure for node.js
I'm developing node.js application that works on Browser, Mobile and Desktop.
This application has many modules like billing, support, dashboard etc..
I started with express.js MVC pattern, later Sails.js looked very attractive.
Then came across MEAN Stack and finally landed on Microservices Seneca.js
Micro-Services looks like what i needed, But i see that Sails.js don't support it.
I wanted to use Aerospike NoSQL, but waterline orm doesn't support it right now.
So what is the project structure solution you are using for node.js that works in Browser, Mobile and Desktop?
This is an highly subjective question. But Meteor is what you are looking for. It does support desktop, browser, mobile, etc. and encourage NoSQL by it's native MongoDB support.
As a reference, I personally did try every single one of the frameworks you have tested (Sails, MEAN, etc.) and ended up with Meteor as my preferred.
As for the project structure, you can read more on various tutorials, books and YouTube videos. The learning curve is steep, but the community behind the project is quite alive and helpful.