Questions tagged as 'node.js'

0
answers

Citizen Card in Node [closed]

Good people Has anyone tried or been able to run the citizen card with the node? I could not get it to work even after I installed the middleware ... link I'm using the example provided, but it seems to me that it's too outdated ...    ...
asked by 08.02.2018 / 19:55
1
answer

Function loading problem Node socket.io

I have the following code: module.exports = function(app) { app.get('/', function(req, res) { res.render('chat/index'); var io = app.get('io'); io.on("connection", function(socket) { console.log("Usuar...
asked by 28.12.2017 / 19:46
0
answers

Error creating a table with sequelize "TypeError: Can not read property 'sequelize' of undefined"

I'm having the following error when trying to create a table:    const User = app.db.sequelize.define ('user', {       TypeError: Can not read property 'sequelize' of undefined My folder structure: Myconfigurationfile(server.js)mo...
asked by 06.02.2018 / 15:50
0
answers

How to organize an Express.js application

Given that the expression has no built-in "autoload" functionality, what would be the best structure or boilerplate to follow in a large monolithic project? and how do you create it?     
asked by 11.12.2017 / 16:01
0
answers

Dialogos complex with Watson [closed]

I started developing chatbot using watson , I found it surprising and simple to deploy. But I was left with some doubts on how to do it and if it is possible (I saw in some chatbot ). An example is, using conversation...
asked by 19.12.2017 / 20:38
0
answers

Sequelize and Google Cloud Storage

Does anyone know how to connect the plugin "sequelize" nodejs to connect to an instance of google cloud. I already created the instance in mysql everything is ready missing only the connection. var sequelize = new Sequelize('database_name', 'u...
asked by 07.12.2017 / 13:31
1
answer

Date Comparison in MongoDB and NodeJS

I would like to know how I can compare two dates in MongoDB in NodeJS, I'm using mongodb-native. I need to compare the current date with the date that is saved to the bank, in this case the DATETIME field. To understand better in the example...
asked by 15.11.2017 / 18:38
1
answer

How to upload a video using multipart and Node.js?

I have an application that is being written using Node.Js, in it I use FFmpeg to create a video from a webcam. I need to upload it to the server using a POST request. So the question is: How to upload a video using multipart and Node.js?...
asked by 13.11.2017 / 16:42
0
answers

Error using Redis on node.js

Hello, I am trying to use REDIS in an application node to control sections, however, when I use I get the error: Error: req.flash() requires sessions at Error (native) at IncomingMessage._flash [as flash].................. Follow my A...
asked by 08.12.2017 / 12:20
1
answer

Difficulties in doing find () in schema / model mongoose with req.params.field in $ get from http

As the title says, I'm having a hard time making a find() customized in the model / schema of the node, which links to the mongoose. My following correspondence.js file (model): var mongoose = require('mongoose'); var Correspo...
asked by 08.11.2017 / 13:43