app.get('/', function(req, res){
res.send('Ola Mundo');
});
In case of this simple code just to illustrate we have a function in nodejs with 2 parameters the requisition and the answer, I wanted to know if someone can explain me better h...
I'm learning Node and getting a bit of asynchronous programming.
To learn, I got the following example
console.log("1");
setTimeout(function(){console.log("2");},3000);
console.log("3");
setTimeout(function(){console.log("4");},1000);...
What is the difference between setInterval , setTimeout and setImmediate in Node.JS?
I know that setTimeout creates a single timer, like a delay, and setInterval creates a range. But what about setImmediat...
I have a dockerfile that runs an application on node.js
FROM node
RUN npm install mongoose
RUN useradd --user-group --create-home --shell /bin/false app &&\
npm install --global [email protected]
ENV HOME=/home/app
COPY packag...
I'm a backend Java developer and I've always used JavaScript in the frontend to give dynamism and better interaction with HTML pages (I've always developed corporate systems).
Is there a way to develop a 100% enterprise system in JavaScript /...
Good morning, I'm doing a form, using Node and the EJS view engine, however I'm having trouble getting data from the forms in the controller. The return of the req.body is always undefined.
app.js with body-parser
app.use(bodyParser.json())...
I am taking a course and following a book on NodeJs . In the book I'm asked to install the Express and Babel modules, already in the course they ask to install dependencies of an application that they make available.
My problem is this:
...
I'm starting with nodejs now and would like to use typescript to program compiling for pure javascript. So I'm having trouble finding something succinct so I can understand (since I'm a PHP programmer) how to receive post and get requests. For e...