Skip to main content

Questions tagged [node.js]

Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
58 views

So, I'm working on developing my first Angular project with/for a friend of mine and I have a design question before I really get started with things. I'm going to be storing persistent data on AWS ...
MisutoWolf's user avatar
1 vote
1 answer
3k views

I have a scenario where I have to route a list of messages that I get to respective users. For suppose if I have messages = [ { text: 'hi', user_id: 1 }, { text: 'hi', user_id: 2 }, { text: 'hi',...
Sm Srikanth's user avatar
0 votes
1 answer
354 views

thinking about the design of an IoT project where the devices don't have a standard application layer but rather a thin custom application layer utilizing TCP sockets. What I mean by this is that the ...
sam's user avatar
  • 3
-2 votes
1 answer
125 views

I want to warn devs in my team to rebuild the docker containers after installing or updating npm packages. This is because whenever we edit packages in the environment the only way we've found to test ...
Meron's user avatar
  • 47
3 votes
3 answers
691 views

For the last several years, I've been checking all dependencies of my team's nodejs project into source control. At first, we stored the archives of all dependencies using yarn v1's offline mirror, ...
SirensOfTitan's user avatar
-2 votes
2 answers
1k views

I have to manage multilingual information in JSON documents in a MongoDB/Mongoose context. But I'm in a dilemma regarding best the format to use with a view to performance metrics: I'm currently ...
The Neighbors Kid's user avatar
1 vote
1 answer
299 views

I'm creating a NodeJS application that receives a ton of incoming financial data (prices) through Websockets, like anywhere from 1 to 5 data points per second which I would then like to send to the ...
WildWombat's user avatar
1 vote
5 answers
585 views

I am having such a hard time with OOP and databases. Both in C++ with SQL and even more so with Node.js and MongoDB. For this question I will use Node/Mongo. Let's say we have a user object. Over time ...
allthewayaround's user avatar
-2 votes
1 answer
125 views

There are many secured applications developed in node.js. However, I could not find any framework (like Spring-security in Java) that can be used to save the trouble of managing the authentication (...
OhadR's user avatar
  • 203
-1 votes
1 answer
3k views

According to documentation from PM: https://pm2.io/docs/runtime/guide/load-balancing/ To make use of its load balancing feature which uses node's clustering to spawn multiple node processes, I need a ...
jeff's user avatar
  • 13
1 vote
0 answers
45 views

I am looking for an elegant way to manage workflows and rollback when needed but the system is depending on various external services most steps of these workflows are triggering by external sources (...
Eray's user avatar
  • 336
-2 votes
2 answers
176 views

What is the best practice in case a service has an error which we caught and handled? Do we exit code 1 or 0?
Stav Alfi's user avatar
  • 297
-2 votes
1 answer
122 views

Am going to handle a CRON job module which will be a generic module, on the job execution time shall I push the events to a queue so let the respective module will pick and do the respective operation....
ankithvicky's user avatar
0 votes
0 answers
101 views

I've built a React Web application with an Express REST API server and Firebase Auth. Also, Nginx is set up as a reverse proxy, so API calls from React to https://mydomain.com/api are routed to ...
Elnur's user avatar
  • 9
0 votes
1 answer
2k views

I'm building a real time chat application like Whatsapp. I have a websocket server with node+express, but I'm a bit confused on which flow I should use. I'm considering sending the image as binary ...
WHOATEMYNOODLES's user avatar
2 votes
0 answers
59 views

I have a 3rd party application. Basically I need to run one instance of that application for a one user. For 10 users I have to run 10 instances. From my API I want to communicate with a specific ...
Fast Snail's user avatar
1 vote
0 answers
71 views

As a hobby / to learn I am building an app in JavaScript using Node.js where a component of it will take input from a client, send it to a server, and then broadcast it to other clients. For ...
Leftover Salad's user avatar
-3 votes
2 answers
202 views

Sorry, the title of my question might be a little confusing. I have this online game that utilizes websocket connections for the users to initialize so my server can broadcast messages to all them in ...
Jacob's user avatar
  • 95
9 votes
5 answers
835 views

A few years ago, I wrote an application that allowed users to upload a file (it's a very specific file type) to a server. It then sends instructions to the server on how to visualise the data, and the ...
Mark's user avatar
  • 79
11 votes
1 answer
5k views

Let’s say I have three files, all of which import a fairly large module. But I’ve divided them because they have different functions. Now each of the JavaScript files needs an initial statement like ...
elbecker's user avatar
  • 121
2 votes
1 answer
72 views

I need some advice on an IOT project I am working on. Here are some details about what I am trying to do: Use Case: Periodically receive data from the 3rd party vendor API in real time and allow users ...
Riley MacDonald's user avatar
1 vote
3 answers
288 views

I am building an API in expressjs and, currently, mongo/mongoose. I currently have some model methods that return true or false, some that return a value or false, and some that return a value or ...
Roger Heathcote's user avatar
-3 votes
2 answers
345 views

I am developing a multi-tenant project that will be a kind of micro "ecommerce" and therefore customers will be able to create their own stores and will be able to choose between creating a ...
João Silva's user avatar
-1 votes
1 answer
73 views

I'm making an online food ordering platform similar to something like Uber Eats. I have the menu items stored in the database which are then sent to the front end where I use a templating language to ...
WildWombat's user avatar
1 vote
1 answer
662 views

I'm developing a web service that have following structure: Web Server: this is implemented with NextJS which do Server-Side Rendering and serve server-side rendered webpage data to Client. API ...
sophia's user avatar
  • 91
2 votes
0 answers
137 views

My company has about 200 repos for microservices and libraries that we share. It's largely been great, but it's hard to keep DRY at the organizational level. We'll often have a large amount of package....
Nick Sweet's user avatar
0 votes
1 answer
84 views

I am a mobile dev, now for a project need to authenticate with a backend service using identityserver4 and OAuth2. The project has things set up so it is using OIDC for authentication. BUT It is on a &...
manuelBetancurt's user avatar
-1 votes
1 answer
71 views

I am developing REST API using node.js and Express. I have Houses collection and Rooms collection. Every Room belongs to exactly one House for it's entire lifetime. I'm not sure how to design API ...
kazulla's user avatar
0 votes
1 answer
65 views

I have a system which generates pieces of data that needs to be tracked and assigned a specific TTYL value (a value in seconds) for how long they are supposed to live before being re-processed. I ...
user391986's user avatar
2 votes
0 answers
67 views

I have a frontend through which users can submit analysis requests, which are inserted into a database. These analysis requests are received in a NodeJS server using Postgres notify/listen. Using ...
Chintan Pathak's user avatar
0 votes
1 answer
51 views

I have a bunch of excel files(Multiple sheets) with some data of similar types, but i'm having troubles when this data has to be inserted in SQL DB. the data in these files are unordered (eg: the ...
clemont's user avatar
  • 11
1 vote
0 answers
114 views

I am developing a RESTful application with nodejs in the backend with express.js as middleware. I am also developing a client in Reactjs. I want to use an external authentication service (LDAP/AD/ADFS)...
cervyvin's user avatar
  • 111
-2 votes
2 answers
367 views

I have a web application with an express/node backend using typeorm and PostgreSQL. The home page in my app is a query with lots of inner joins that shows the user a complex report. This query takes ...
CamJohnson26's user avatar
0 votes
1 answer
1k views

I want to write a Node CLI that leaves a server/daemon running in the background, so subsequent calls to the CLI are much faster, as it can just print the latest info from the daemon (which is already ...
callum's user avatar
  • 10.5k
0 votes
1 answer
98 views

I'm not sure that I'm even asking the right question so I hope you guys can point me in the right direction here. I have a full stack web app which has listings (think eBay, Gumtree, Craigslist) and I ...
withwavy's user avatar
-1 votes
1 answer
79 views

In my node.js app I have a async function that fetches remote documents and caches them on the disk. Upon a retrieval request for a document first checks the disk, if found loads it from the disk ...
frogatto's user avatar
  • 193
0 votes
0 answers
193 views

I have server A that received millions of requests per day and for every request it notifies server B about it. sometimes server B is down (maintenance, bugs etc..) so requests from server A got lost. ...
Avi L's user avatar
  • 109
2 votes
2 answers
806 views

I'm looking to make a clean modular architecture. I hear all around how bad are circular dependencies, and I'm convinced that the less two modules are coupled, the most reusable the code will be. But ...
TOPKAT's user avatar
  • 131
4 votes
2 answers
8k views

I'm developing a REST API using Nodejs along with MySQL as the database.Is it okay to keep open the MySQL database connection open through out the Application or open and close connection query-wise ? ...
Pasindu Dewapriya's user avatar
-3 votes
1 answer
247 views

Well consider a relative simple server for a SPA application. Written in nodejs with express and knex as backends. Now if we do it properly each function will have unit tests (as they are always all ...
paul23's user avatar
  • 1,131
0 votes
2 answers
4k views

So, in the process of creating a user there are 4 possible outcomes: Username is already taken Email is already taken Username is invalid Email is invalid Here is what I have in the controller for ...
kibe's user avatar
  • 738
-2 votes
2 answers
127 views

I am trying to build an API server. For the register operation I send an email to the given email address and wait for user to activate his account by using the code in the email that i sent. I use ...
Mansur Ali Koroglu's user avatar
-3 votes
1 answer
174 views

I'm creating a web application using Node.js and Pug, and have recently been looking at adding external OAuth authentication to this site, using Express and Passport.js. I've found a lot of examples ...
JackLidge's user avatar
  • 113
-2 votes
1 answer
87 views

To Put My Question In Better Context... I am about done writing my first real-world Node application, which would be classified as a REST API. For myself, it was a bit challenging to wrap my head ...
John S.'s user avatar
  • 99
-4 votes
1 answer
417 views

I'm more or less learning the MEAN stack (have yet to start on Angular, so currently using straight vanilla JS for front-end) and part of what I'm building for my portfolio is a drag-and-drop form ...
R Greenstreet's user avatar
-1 votes
3 answers
205 views

I'm developing a social network with Django (Python) + Postgres SQL. My site will have a chat feature so that users can communicate to each other in real-time, and the communication will be only from ...
Fran's user avatar
  • 9
2 votes
1 answer
275 views

I've looked through similar questions and tried to Google what I'm trying to do, but I haven't found anything concrete. What I'm trying to do: where I work, we use an HMI/SCADA system that displays ...
Yuriy F's user avatar
  • 123
1 vote
1 answer
188 views

We have an application that has served us and our clients well from some 20 years now. Pretty good track record but it's obviously showing it's age in some areas. We are looking for advise and ...
user44021's user avatar
-4 votes
1 answer
469 views

I am creating a Nodejs website and the website is about selling photos, although I will store the images on the static folder but in the low quality or watermarked. But When the user Purchases that ...
Ace's user avatar
  • 1
-5 votes
1 answer
114 views

I have been trying to use Node.js since it was first released, and in all of the intervening years, not once have I encountered a single Node.js project that worked as described when using the ...
Jonathan Voss's user avatar

1
2
3 4 5
11