Questions tagged as 'nodejs'

1
answer

Error with heroku in node: Failed lookup view in views derectory

I have a web app that works well in local but when uploading it to heroku the following came out in the logs 2017-01-01T00:30:57.874896+00:00 app[web.1]: Error: Failed to lookup view "notFound" in views directory "/app/views" 2017-01-01T00...
asked by 01.01.2017 / 02:02
2
answers

RegExp that detects if it matches a word, considering duplicate spaces and / or letters

I worked with NodeJS , I had a system that verified whether a string contained a certain blocked word, however, it was easy to dodge the system. (It replaced all the unicode characters to "" , so it's very inefficient). I would like to...
asked by 03.03.2017 / 19:27
2
answers

How to embed app nodejs in java application

There is an application developed in spring and angularjs, the problem is that they want to make an app in nodejs and be able to embed it within the java application, I mean Something like pressing a button, and look at your node app, suppose...
asked by 25.02.2017 / 17:10
1
answer

Problem when inserting new element in array

Hello, I have the following code: var fs = require('fs'); function search(text) { var response = []; fs.readdir('documents',(err, files) => { files.forEach(file => { if(file.toLowerCase().indexOf(text.toLowe...
asked by 03.04.2017 / 06:55
2
answers

Advantages of organizing dependencies using Node.js / npm

I would like to know what the advantages and disadvantages are (if they are clear), to use Node.js to download the modules, dependencies or packages , from the libraries and frameworks what we will use to develop. To solve my doubts I have a...
asked by 14.02.2016 / 00:37
1
answer

Obtain the client's IP in Node.js

I need to obtain the IP address of the person who consumes the API I am working with, this is the code I am using: app.post('/api/v1',(req,res) =>{ ConnectTelnet(); var ip = req.connection.remoteAddress; console.log(ip); }) But th...
asked by 24.09.2018 / 22:23
1
answer

Error: ENOENT: no such file or directory, stat 'C: \ public \ index.html'

Trying to visualize the main html file, I could not find the specific path, no matter how hard I tried. server.js import express from 'express'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; impor...
asked by 26.03.2018 / 23:52
1
answer

Socket.io google maps

I am building a small system, to see the location of a user in real time with google maps. I have a backend echo in node.js (socket.io). A frontend where I see a google map and the scoreboard in real time. and an app which sends the data to t...
asked by 17.05.2017 / 16:04
2
answers

What is the difference between dependencies and development dependencies in node?

When I initialize npm init and install the dependencies, I would like to know what is the difference between dependencias de desarrollo and dependencias ?     
asked by 05.07.2017 / 22:43
2
answers

Group by a field and see all the values of each record - SQL

I need to group by date a table with several dates with a specific value for each date. For example: 01/01/2016 10 01/01/2016 20 01/01/2016 30 02/01/2016 40 02/01/2016 50 ... The result should be: 01/01/2016 10 20 30 02/01/2016 40 50 T...
asked by 09.01.2017 / 20:15