Questions tagged as 'node.js'

1
answer

Angular Difference JS to NodeJS [closed]

What is the Difference of Angle JS to NodeJS? Which is the most used? Is there a tutorial you recommend to anyone who is starting to teach a CRUD in each of them?     
asked by 26.10.2016 / 20:47
1
answer

Configuration of environment variables - Commands do not work - Ionic

You are experiencing the following error: 'ionic' is not recognized as an internal command or external, operable program or batch file. But this command appears only in cmder, at the node.js prompt I installed it works "normal". When creat...
asked by 12.11.2018 / 17:34
1
answer

How do I refresh the page automatically when I save the project?

How to refresh the page automatically when saving the project to automate the job ?. To further automate design like in Cordova designs.     
asked by 11.05.2018 / 06:16
1
answer

How to send sms using javascript or angular or node.js [closed]

I need a method or api that sends sms for free, it can be from my same tim number (I have sms plan), I searched and just found some easy to use payments. I am preparing for a university hackathon and I need to produce this to have a differential...
asked by 20.10.2017 / 17:53
1
answer

MEAN STACK: Mongoose model blocks communication with my controller

My controller does not send data to my router when my Model is being exported into the application and I do not know why this happens. controller.js var Model = require('../models/dado.js'); exports.listaDados = function(req, res) {...
asked by 01.06.2017 / 13:59
1
answer

How to close Node.JS in the application?

How do I stop a Node.JS application? For example, in PHP we have something like this: exit; Or: die('Mensagem.'); Is there any way to stop the Node application like this, without having to use Ctrl + C ?     
asked by 02.03.2018 / 19:09
1
answer

Security in queries with Redis and MongoDB and NodeJs

In the relational model, when using SQL we have to pay attention to SQL Injection in our application. In Redis and MongoDB, what care should I take when building a database query? Remembering that I'm using NodeJs, but I think it applies t...
asked by 30.09.2014 / 01:10
1
answer

CSS and JS in production of NodeJS + ExpressJS + Socket.IO

I have a problem in a chat that uses NodeJS + ExpressJS + Socket.IO. There are no problems in the local environment. However, when I put it into production I'm having problems with CSS's and JS's. I open the page in Chrome, check the Network tab...
asked by 20.03.2014 / 13:47
1
answer

Working with Date and Time in NodeJS, Mongoose, and TypeScript

Good morning everyone, I come from the java world and am starting in NodeJS. I'm having a hard time understanding how to work with dates and times in NodeJS. Here is an example of the template I want to use: export interface teste ex...
asked by 23.12.2018 / 15:57
1
answer

Error query mongoose

I have a query in NodeJS with MongoDB: filter:['abertos','cancelados']; schemas.chamados .find({STATUS_CHAMADO : {"$in" : filter}}) .exec(function(err, dados) { if(err) return callback(err); else { return c...
asked by 03.03.2015 / 20:03