node.js tag

261 questions


1 answers
37 views
0
How does the callback function that I set go into the event queue?

I'm studying the event loop of NodeJS.I looked it up on the Internet, read nodejs, libuv source code, setTimeout( function(){ console.log(Hello World!) }, 1000 );Here, I don't know how that setTimeout...

2 years ago

2 answers
128 views
0
How do I call a function after receiving a value from two callback functions?

// ...var foo, barfoobar.first(function (value) { foo = value})foobar.second(function (value) { bar = value})function next() { // ...} // ...It's a code in this format I want to call the next() functi...

2 years ago

1 answers
38 views
0
Node.js callback function question.

When I ran the code below, I thought that Enter loop at the beginning was printed, and then setTimeout said to run it 1 second laterTime out, 4 seconds after this is printed, exit loop. I think it sho...

2 years ago

1 answers
34 views
0
How to implement functions such as font thickness, slope, and color on the bulletin board writing page

Implementing bulletin board function with node.js + express.The image above is a capture of the bulletin board writing tool on the hashcode website. I don't know what to call those things. Haha)How do...

2 years ago

1 answers
122 views
0
Implement bulletin board paging

Implementing node.js + express + ejs template.I implemented the bulletin board with a lot of help from the hash code.I implemented it without an editor. (Because of that, I still implemented uploading...

2 years ago

3 answers
69 views
0
JSON Object Properties Assignment

For example, you want to store values on an object called db in the following structure:db = {level1: { 0901 : { 1210: { data : 3.0}}}};db = {}To save the above value when db['level1'][0901']['1210'][...

2 years ago

2 answers
102 views
0
This is a question about using Redis and mongoDB together.

First of all, I am implementing web messenger with node.js and socke.io.As I looked it up, I know that Redis is a NOSQL-based DB like Mongo, but there are cases where it is mixed with Mongo, so why is...


2 answers
127 views
0
Create a real-time web page using python Django (so that it can be changed as soon as the data is updated)

What I'm curious about is the concept.Python and JavaScript also use websocket (socket.io??)If an event occurs because the client and server are connected to each other,I understand that you can send ...


1 answers
79 views
0
Questions when developing chat functionality with socket.io

Hello.Web development with node.js + express.We're implementing the socket.io chat function this time.That's all we've developed.I understood and developed the simple message exchange part, and I woul...

2 years ago

3 answers
36 views
0
Update node.JS session

express, passport, mongoose, express-session is in use.User.findOne({'_id': req.user._id}, function(err, user){/user document search if(err){console.log('findOneError')}else{ user.profImgHref = /*omi...

2 years ago
« - 23 - »

© 2024 OneMinuteCode. All rights reserved.