Questions tagged as 'node.js'

1
answer

Default directory for opening the prompt in Node.js

How do I get Node.js to always open in a directory I want? I'm new to this technology. I would like to know how to change the default opening path, because it currently always opens in c:\users\meu_usuario . Follow the image below:   ...
asked by 20.08.2014 / 21:02
2
answers

URL with string parameters with angular.js

I would like to know the best way to treat url with string parameters in angular.js. When accessed: www.app.net/nomeDaPessoa/ServicoDaPessoa It would respond to a given route that is receiving nomeDaPessoa and ServicoDaPessoa...
asked by 25.02.2015 / 13:31
1
answer

How the node pool works

If, for the time being, my server does not receive many requests or is in development (only receives my test requests), does it make sense to decrease UV_THREADPOOL_SIZE ? If my server is receiving many requests, is there any ga...
asked by 23.06.2018 / 19:15
1
answer

Update part of web page with Electron. (Change only content and keep header, footer and fixed menu)

I am making an application using Electron, split the screen into header, footer, menu and content as it does in an ordinary web application. ThebuttonsneedtoperformtheactionsinthemainElectronwindowbutitisnotworkingandIdonotknowhowtosolveit.I...
asked by 19.10.2018 / 23:54
1
answer

JS does not work after running "npm run dev"

Good afternoon, I'm studying Laravel 5.7 and was looking to use a plugin called progressbar.js . One of the ways to install the plugin is to play the file progressbar.js direct in public/js of Laravel, after that, I write where I...
asked by 26.09.2018 / 20:12
1
answer

PHP - Real Time Application [closed]

A doubt I need to make an application that validates from time to time if a session is valid through a query to the bank. This query should be done automatically, without the need for a user action, such as a JS location.reload (). I thoug...
asked by 07.12.2017 / 12:33
1
answer

Importing nondescript files with NodeJS

I am creating a file structure in an application where each directory contains an "index" file. This index file takes the name of my directory to improve readability. Ex: foo |--foo.js // <- index |--bin.html |--bar | |--bar.js // <-...
asked by 11.01.2017 / 15:41
1
answer

Security when sending and retrieving data from a URL

Hello, I am learning development and I do not know much about security. I'm doing a web application using Nodejs + Expressjs + AngularJs + MongoDB . I did as follows, the MongoDB data is sent to a URL using the Post...
asked by 21.10.2015 / 18:11
1
answer

{} on return from require ()

I'm creating a module, but when I'm going to use it, I get an empty object in require () Codes below: dev / index.js module.exports = () => { 'use strict'; const names = require('./names.js'), findSuperman = require('./f...
asked by 12.04.2016 / 17:06
1
answer

Totvs Fluig - Customization - Call in REST service in the beforeSendData event

Does anyone know how to make a call to a REST service inside the beforeSendData event, below my code (not functional): My goal is to execute a call on a REST service from the fluig itself in order to get the detail of a request (process insta...
asked by 11.11.2015 / 17:50