Search the Community
Showing results for tags 'nodejs'.
-
I am currently working mongodb and nodejs from w3schools website. I have seen an error in a code. https://www.w3schools.com/nodejs/nodejs_mongodb_create_db.asp In this website there is a code for creating website. : var MongoClient = require('mongodb').MongoClient; var url = "mongodb://localhost:27017/mydb"; MongoClient.connect(url, function(err, db) { if (err) throw err; console.log("Database created!"); db.close(); }); When I run this, I see this on the terminal: (node:26812) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and
-
Bonjour, J'ai un petit problème... Mon application NodeJS tourne en local depuis le début du développement. Mais impossible de la publier ... (la box est bien paramétrée pour router l'adresse publique port 8080 vers l'adresse du serveur local port 8080). Mais pas de réponse... Je précise que le firewall nftables est désactivé, que je tourne sous Debian 10. Merci d'avance pour vos retour.
-
Hi! I've found an obsolete property name in tutorial Node.js Upload Files: files.filetoupload.path Attempts to call it throw an error. Today the right property name will be the next: files.fileUpload.path I think it should be fixed so as not to disorient beginners. Thanks!
-
Hi! I'm Vincent from Matters. I am transitioning from PHP to JavaScript. I wanted to give back to the community so I wrote an article about it: https://blog.matters.tech/migrating-from-php-to-javascript-with-node-js-155534498b58 I hope it will be useful to some! Feedback warmly welcome https://twitter.com/cold_lestat
-
- php
- javascript
-
(and 1 more)
Tagged with:
-
Hello. I have a problem with a function that contains a callback. The problem is, when I execute it the first time, it works without no problem, but the second time, the callback is executed twice: first with the first value and later with the second value. I post the code and an example of running Code of the function: function titulo(terminoTitulo) { console.log("titulo():"); console.log("titulo(): Fuera del callback: " + terminoTitulo); consultar_titulo(terminoTitulo, function (titulo) { console.log("titulo(): termino: " + terminoTitulo); console.l