Questions tagged as 'nodejs'

2
answers

I need to update (UPDATE) the result of a select in mysql for node js and myadminphp does not accept the instruction

I am working a socket.io to update a database. The data read and served by socket.io to a file pug I want to mark with estado=1 . Initially the value is 0. I want the% co_of% to read 10 articles and be in consult...
asked by 06.04.2017 / 03:32
1
answer

The assert in nodejs

As much as I search Google for results in Spanish, they do not appear and I did not understand what the assert is. What role do they have in NodeJS? That curiosity stings me first of all.     
asked by 25.04.2017 / 08:03
2
answers

Problem with INNER JOIN

I am using INNER JOIN to list the demos and its descripcion , but now I need to add to this info the tags which are saved in a table tags with a name and a demo_id that would be the way to associat...
asked by 21.03.2017 / 22:02
2
answers

Database model with Mongoose

I would like to know if it is possible to implement a document that has as an attribute an array of documents and how to do it. For example: Usuario = { nombre: String, archivo: [{ ruta: String }] }     
asked by 23.02.2017 / 19:15
1
answer

Run node.js socket.io from web hosting

I have been working with these two services from the console, making the server start executing the commands by console (nodemon servidor.js), everything I find on the web is using localhost, it works perfect I have not had any problems, my ques...
asked by 21.02.2017 / 16:10
1
answer

ionic2 make a query to an api when the view loads

I want to make the query to an api xxxxxx / yyy, just load a view, the problem is that when the page loads I do not receive an answer. This is my code. example.ts ionViewWillEnter() { this.chats.push("Hola prueba del chat"); t...
asked by 06.02.2017 / 01:06
1
answer

include in template ejs

I'm doing a render recursive and quite simple in this way in express // index.js const VIEWS = __dirname + '/app/views/'; app.get('/', function (req, res) { res.render(VIEWS + 'includes/partials/body', {layout: VIEWS + 'dash...
asked by 15.03.2017 / 02:32
1
answer

Return a promise that contains an array with data from other promises

I am setting up a function in expresJS that using two simple functions execute two SQL queries using Knex to two different databases, but it must return as a response a promise. function qDB1(status_id) { return KnexDB1 .select() .from('...
asked by 18.01.2017 / 05:07
1
answer

MongoDb and node js

I have an application made in reactjs , I manage the dependencies with nodejs and I want to connect to a database that I have installed locally. install express and mongodb using npm. this error is generated when I lift the application:...
asked by 21.01.2017 / 05:13
1
answer

Something similar to XAMPP to use with Electron?

My idea is to create a local Crud with relational databases The SQL Express program allows me to create a server and connect to an existing database. Is there an alternative for Express itself to serve an SQL database? o Is there a...
asked by 09.01.2017 / 00:19