Questions tagged as 'node.js'

0
answers

Node with mongodb not launching application

I'm trying to upload an application in Node with mongoose , (I'm studying, book MEAN home code) and it generates the following error when trying to start the file server.js where I started my application in Node, see below. Be...
asked by 13.07.2018 / 02:37
0
answers

Automatic API Integration

Based on what the postman does, what the codegen does, I believe it is possible, from an api specification, to perform an automatic integration of an X system with a Y system. Imagine a virtual store, which needs to calculate freight, tra...
asked by 13.07.2018 / 01:36
0
answers

Problem in get in Node Express method

I'm trying to list menu log in my database in MongoDB and I'm not having success, however when I'm ready the records of Restaurant I'm successful, all two collections are in the same database, why will this be happening ? This is my method th...
asked by 11.07.2018 / 18:38
1
answer

How to get a file stored with nodejs and multer?

In the API, in NodeJS, that I am doing, the user sends the image to the API and, using the multer, the image is stored. All the tutorials I saw for this situation, the Node is using a preprocessor like jade, ejs, handlebars etc. But in my case,...
asked by 11.07.2018 / 16:23
0
answers

Direct Print to the Printer with Angular and Electron

I would like to know if someone has already gone through this and if you have examples or can you give an example of how to print directly to the printer without opening the print dialog using Angular and Electron. I am studying the possibili...
asked by 08.07.2018 / 22:30
0
answers

How to perform a filter using Mongoose?

I already know how to implement a filter using the MongoDB identifier key, however I'm trying to implement a value attribute filter, and I'm not getting it, see below; What I need is that when typing the value the slug and already bring the r...
asked by 06.07.2018 / 16:25
0
answers

How to get an access token OAuth - Youtube Data V3

I am trying to get a token of OAuth 2.0 from the Youtube API, so my bot can perform actions on behalf of a user. To do this, I need to create a redirect url , like this provided by Google itself as an example ):    link So far s...
asked by 07.07.2018 / 07:20
0
answers

Customize .env file

How can I configure the .env file to be prepared for different connections, such as: If I want production I go there in the .env file and change the DB_HOST = 185.565.55.5 If I want to test I go there in the .env file and change the DB_HOS...
asked by 20.07.2018 / 21:25
0
answers

File Upload Nodejs

I'm breaking my head here to try to upload images with Nodejs but it's being "freud". I am developing an api where you will have access from three domains. So the structure of my api is basically: public src company ... *.js route...
asked by 10.07.2018 / 16:52
0
answers

Sluggishness in node ng serves when passing a certain time

I start my server with ngserve, over time the computer slows down until it becomes unusable, I have to close the node and open it again, there it goes for a while. Has anyone ever gone through this? Any idea what might be causing slowness?...
asked by 10.07.2018 / 17:39