Questions tagged as 'nodejs'

1
answer

multiple query in nodejs

I want to show a post and the respective comments for this I have 2 tables in mysq l a " post " and the other " comments " Use mcv model view controller with nodejs and express . model.js getOne(id, cb) { conn.que...
asked by 13.02.2018 / 20:57
0
answers

How to post information from a form to mongodb with angularjs

I'm doing a project with YOMAN ANGULAR-FULLSTACK (angularjs + node + mongodb) and I need to upload data from a form to a database. The problem is that so far I can upload empty content, but I do not know how I should do to load the fields I fill...
asked by 13.02.2018 / 15:11
0
answers

Delete context in a TLS / HTTPS Server

The tls.Server class allows us to add certificates for different "hostnames" dynamically using the addContext () function but I have not yet found a way to delete a context once it has been added. Is there a way to do this? Any internal property...
asked by 13.02.2018 / 17:06
0
answers

How can I achieve this with CommonChunPlugin from WebPack?

What happens is that I just saw a package made with webpack, which returns a function called webpackJsop that causes the javascript code to load asynchronously by chunks. This is the plugin link CommonChunkPlugin This is the code ret...
asked by 13.02.2018 / 05:43
0
answers

Security with NodeJs, Express and MySQL

Recently I started to develop a web system using NodeJs, Express and MySQL. In broad strokes, my system consists of an administrator panel and a backend to which mobile phones communicate through apis. The part that I need is the security one, I...
asked by 13.02.2018 / 14:53
1
answer

How to export database made in Mongodb to VPS in digital ocean?

I have a problem with the export of the database, I have been developing a system (MEAN), and we have used it in an intranet, everything perfect up there, Now we are hiring a VPS and almost everything is already configured, except the database,...
asked by 01.02.2018 / 14:12
0
answers

Electron - Error with rpm "the License field must be present in the package: (main package)"

I installed the Electron Redhat (rpm) Installer module because I want to compile it in RPM, so I already put the code in the package.json as in the Github page of this module. But at the time of placing "npm run rpm64" I get this:    Error: E...
asked by 02.02.2018 / 03:08
0
answers

Consume API Rest from Node JS and collect results in Angular 4

Good morning. I'm making an application in Angular 4 that makes various calls to a Rest API, and that API refers to a database that is on a server. The calls to this API are being made with Angular 4 in the following way: This is the request...
asked by 26.01.2018 / 10:21
1
answer

Replace one template with another in nodejs

I have a doubt .. Attach a button to close session. You already create the event and everything is fine. But how can I tell the server to send me the welcome page? Use nodejs server. And in the front javascript ... The welcome page is a...
asked by 28.01.2018 / 00:25
0
answers

How to show a pug plate

Using ajax request the template to the nodejs server. And show it with the head and the body. To replace the previous ones The ajax request is already made. just do not replace the head of a web page already rendered.     
asked by 25.01.2018 / 17:11