Questions tagged as 'node.js'

1
answer

Upload a nodjs and mongodb project to a VPS

I developed my project with Nodejs and MongoDB in Windows, now I intend to upload it in a Ubuntu VPS with these software already installed, I already have Putty installed on my machine and I got access to the server, but I do not know how to sen...
asked by 19.02.2014 / 07:43
2
answers

Error installing Ionic + Cordova

error messages when I try to install Ionic (npm install -g ionic cordova) can anybody help me? I'm using node 6.9. Thanks     
asked by 25.01.2017 / 23:12
1
answer

Node_modules is not recognized

Why does this happen at the Windows 10 prompt? Commands as in filename.js works. This happens when I try: node_modules/mocha/bin/mocha In the environment variables I put: %USERPROFILE%\AppData\Roaming\npm I've already tried the user...
asked by 26.01.2017 / 18:17
2
answers

Use INSERT using SELECT (Node.js and MySql)

I need to insert some data into a table, using the following code: var query = 'INSERT INTO uso (id_usuario, id_tempo) VALUES ((SELECT id FROM usuario WHERE nome='Jose' LIMIT 1), (SELECT id FROM tempo WHERE timestamp=1505530800000 AND nome...
asked by 17.09.2017 / 01:36
4
answers

Debug applications in NodeJS [closed]

What are the best tools for debugging applications in your opinion?     
asked by 13.12.2013 / 12:48
2
answers

Variable not defined, even if defined

I made a class, which saves in a user login and password array: function AccountManager() { this.accounts = {}; } AccountManager.prototype.createAccount = (login, password) => { this.accounts[login] = password; }; module.exports =...
asked by 23.05.2017 / 18:30
3
answers

Map two arrays and delete the item not found

I have an api on node and I have the following situation: I am the master user and create a usuário A for any employee. This usuário A has the permissions User Permissions A [criar_usuario,editar_usuario,receber_contas,...
asked by 07.11.2018 / 17:03
1
answer

Alternatives to PHP [closed]

And I really like C # so I took a look at ASP, but I did not like it very much. I already moved with NodeJS and I really like it. I wanted a PHP-like language, where you could put the code inside HTML and manipulate it. So: <div>...
asked by 20.12.2016 / 14:47
1
answer

Hosting node JS

Does anyone know of any hosting node Js? that has Mongo database support? And how to do a free trial without having to insert a card?     
asked by 09.01.2016 / 17:42
6
answers

How to count page views on a site

I'd like to implement a pageview counter on my site, display a numeric reference on the site, and use that data to perform a top-ranked article / post ranking and automatically insert a widget in the sidebar of the site. Node.js solves the pr...
asked by 10.03.2014 / 21:17