Loading...

Follow Reddit | node.js on Feedspot

Continue with Google
Continue with Facebook
or

Valid
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

I am using RSS to build an XML feed, quite simple. It works locally, but fails on the server? Is there some compatibility issue with NGINX where my server is? Is there something I am missing?

submitted by /u/getsumakrite
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Please suggest side projects/ mini project ideas one should make while leaning nodeJS , what most commonly i see is making a API using node and express but I want to dive deep and explore more possibilities. Thanks

submitted by /u/khanishan81
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Hi Reddit, after getting a frustrated with the folder structure of one of my projects I went down the 'code organization' rabbit hole. After reading many blog posts/articles it seems like seperating your app into components is the most highly regarded technique for a maintainable folder structure. But I am having trouble conceptualizing what constitutes a component - at first I tried to implement this by creating folders (components) for each 'entity' I had (i.e. User) and I put the mongoose model, route controllers and use-cases files in there.

Aside: Use cases are the business logic of the application, they take in input from the route controllers and the orchestrate the flow of data to and from the models. The route controllers then adapts the response to an object it can send back to the HTTP caller.

While implementing this I came into a lot of issues. One of the issues was that all of the components ended up being really tightly coupled to each other due to the fact that Use Cases in the vast majority of cases uses multiple models (due to relationships between data). A more crippling issue was cyclical dependencies which I think was due to the components being tightly coupled, I did eventually manage to resolve it but I cant really remember how and it was pretty hacky.

I came to the conclusion that seperating by entity was a bad idea, but I am still not sure how to seperate my backend into components.

I use Angular a lot, so I also considered that I could take some ideas of how components work from there, but when I thought about it - components are only used for the UI. All the data stuff is done the 'normal' way by seperating them by 'kind' - ie. having a models and services folder. So this doesn't help me when it comes to backend applications.

So I was wondering if there are any real world examples that takes this Component based approach that I could take a look at (can be conceptual designs or open source code). Or maybe I should just stick with seperating files by 'kind' with folders like models, use-cases, controllers etc.

Any guidance on this would be much appreciated, many thanks in advance :)

submitted by /u/Devstackr
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Hey guys, I’m trying to find a good way for puppeteer to fit my work better. I have a Mac with node and puppeteer installed and I wrote some tests that run through our sales tunnels making sure everything is how it’s supposed to be.

My tests just output two short arrays of strings and it would be awesome if I could have this accessible through the web somehow. Any thoughts?

submitted by /u/g3t0nmyl3v3l
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 
Reddit | node.js by /u/medygames - 15h ago

Im new to node , what I wanted is make a simple request to a Webseite from the server , then check if there is a certain class present inside the html document with .queryselector(".test")...

I found a random library called jsdom , that allows me to parse the html string into a document so I can use DOM methods .

My question : is this correct or is there a easier way to get a html document from a axios request ?

Greetings

submitted by /u/MedyGames
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

A client asked me to implement, that when a new order gets placed on the web app it prints the order on a thermal printer. How could i achieve this?
thanks for the help

submitted by /u/rolla23
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Is there any chance that node becomes it's own programming language in the future? Technically this would be possible I think.

submitted by /u/texxxo
[visit reddit] [comments]
Read Full Article
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

https://github.com/sindresorhus/awesome-nodejs
We link to this every now and then as it’s a truly definitive list of categorized Node resources and continues to be updated, pruned, and added to over time.

submitted by /u/mominriyadh
[visit reddit] [comments]
Read Full Article

Read for later

Articles marked as Favorite are saved for later viewing.
close
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview