Which GraphQL package to use for the Node-express app - node.js

This question might seem opinion related but I am literally Puzzled about chosing NPM package for GraphQl
TO be frank, I am just Starting with GraphQL and I opened an article, That Article asked me to install express-graphQL. Blindly, I installed it.
Later on, I wasn't able to comprehend the article, I saw the next article
they were using apollo-server-express
Another Article, they were graphql-yoga
And then another article they are doing npm install apollo-server graphql
I am probably not pro like most of you who get things by reading description in npm module and while this question might be opinion related, and can someone help/guide me with graphQl package I should use.
I work with Node-Express

Related

When people say KOA2, what exactly are they saying?

Does anybody know what the relationship is between KOA and KoA2 in NPM?
Recently I was trying to use the KOA framework, and I was wondering which of the two code repositories in NPM, KOA and KoA2, What should I use? Or, when people say Koa2, they mean KOA 2.x and not Koa2 in npm?
If I want to use koa2 , what code repositories should I use ? koa or koa2 ?
Can anyone help me? Many thanks.
I just installed both of these side-by-side and diffed the installed code.
The NPM package koa2 at npmjs.com/package/koa2 is a clone, not a fork of the NPM package koa#2.0.0-alpha.7 at npmjs.com/package/koa — with some minor changes.
Stuff like this can pose security issues. The problem is that Evildoers™ publish NPM packages with names similar to a popular package. That package contains a trojan of some sort. People install it either by making a typo and not realizing it or by being confused about which is the real deal. So there's that.
In this case, I do not believe koa2 is malignant, but I would stay away from it.
Especially since Koa itself is currently (9 October 2020) at version 2.13.0.

Is Node.js just used for dev-tooling on the front-end?

For my understanding, node.js is a javascript-engine which is running javascript-code without using a browser(window-global). You can use javascript on a server. But I saw now a lot of tutorials(react, angular, vue etc.). In every tutorial, I have to install something with npm. I can follow there are several dev-tools which I can use on my local machine to minimize my javscript-files or compile sass to css. But in the end, when I put my files on a webserver, I just have normal javascript-files, css-files etc. No node.js code in it, right?
My question is: React, angular, vue.js etc. are written in just normal javascript without node.js right? The reason why I use npm ist just to install every dependencies with one command, right?
A question more: Is there an any recommended order to learn all these frontend-development stuff? There are so much words I have to google it: angular.js, react, vue.js, vanilla.js, typescript, backbone.js, bower, grunt, webpack, yarn etc... I dont know where I start, so I look into few tutorials, but everytime I go through these tutorials, there is a new word(technology) I have to research.
I think you're getting your terminology a little muddled.
Node.js is a JavaScript runtime, built on Google Chrome’s V8 JavaScript engine. However, that is not to say that Node programs are executed in a browser. They aren’t. Rather, the creator of Node (Ryan Dahl) took the V8 engine and enhanced it with various features (such as a file system API and an HTTP library) to create a program we can use to execute JavaScript on our computers.
Node comes bundled with a package manager called npm which you can use to install packages (such as React and Angular) from the npm registry. These packages are indeed written in normal JavaScript (or a language that compiles to JavaScript, such as TypeScript).
The reason why I use npm is just to install every dependencies with one command, right?
Kinda. You can certainly use npm to install dependencies. However, it does a lot more that that. For example you can use npm scripts to carry out various build tasks, or you can create a package yourself and use npm to publish it to the registry.
A question more: Is there an any recommended order to learn all these frontend-development stuff?
As with everything, it depends. What are you trying to build? It's relatively pointless to learn about Node, npm, React and Angular if you are attempting to build a simple static website. If I were you, I'd define a clear goal and set about learning the technologies you'll need to reach that goal. Saying that, if you are doing anything with front-end development, learning about npm will be a good use of your time.
Here's an article by way of further reading that explains things a little more: https://www.sitepoint.com/an-introduction-to-node-js/

Official description of purpose of #angular/platform-server?

I'm just reviewing some dependencies of an angular project.
During that, I had to figure out, that I couldn't find any description for the single angular sub packages describing their purpose.
Example:
#angular/platform-server
When browsing to the API documentation or the npm package page, there is literally no description explaining the purpose of those packages:
https://angular.io/api/platform-server
https://www.npmjs.com/package/#angular/platform-server
https://github.com/angular/angular/tree/master/packages/platform-server
https://angular.io/guide/npm-packages#feature-packages
I think this where all the official sources. But no word about #angular/platform-server lost.
Is there any official documentation which includes this? Or does this simply not exist? I don't want to have tons of packages in my dependencies of which I have no idea of what they do and if I need them at all.

Installing NPM Dependencies on Firebase Hosting [duplicate]

This question already has an answer here:
Socket.io Official Chat application not work on firebase
(1 answer)
Closed 6 years ago.
I have a simple web app made using Socket.io, Express and Node.js.
Have successfully managed to push it to Heroku via Git, and it works fine. Yay!
However, I am trying to make it work on Firebase. I seem to be having some trouble installing the NPM dependencies. I didn't use Webpack or Browserify, and for Heroku, the various NPM dependencies are installed on their server, and I can leave my node_modules folder on my local computer. The docs don't seem to talk about NPM dependencies. Am I trying to do the impossible at this time? or am I missing a few critical steps?**
I believe Firebase hosting should support the various JS dependencies because if we were just doing static websites might as well use FTP and Wordpress or something. And there's much mention of web apps on their site too..
I have tried using the Firebase CLI, and reading the docs, but it doesn't say anything about specifying my various NPM Dependencies, or even ask for my package.json contents. I am wondering if it even takes notice of the package.json file so that it will install them the way Heroku does.
Am not trying to use any Firebase features at the moment, just their hosting for now, and later on will install their login and auth, which is my final intention.
Cheers guys and thanks for your help! :D
To quote one of the Firebase developers, from this forum thread:
Firebase Hosting is for static files only. As such, you cannot run Node.js scripts on it. You should look into using something like Webtask or just run your own Node.js server on something like Google Compute Engine or Heroku.
We plan to provide a solution for you to run things like you are suggesting in the future. No timeline for it at the moment.

Using Solr with Meteor

I am working with Meteor JS and currently new in it. Since Meteor uses only Mongo DB, I need to integrate Solr with it for faster search access. Googled but to no avail. Can anyone please share with me some methods, links, or code snippets where I can use Solr with my Meteor project.
Try with Lunr package.
First install it on meteor
meteor add lbee:lunr
According to docs.
A bit like Solr, but much smaller and not as bright.
Here is the live demo, and API
Also you might look at this conversation on Quora about Text-Search and this other too
PD: Example code on the Lunr Package info on Atmosphere

Resources