Questions tagged as 'nodejs'

1
answer

Handle schedules on firebase

I am doing a task for the university using the real-time database of Firebase in Ionic and Angular 2. I do not have any problem in the typical crud, but I need to make a change of a data from the database , and a certain time later (one hour, fo...
asked by 28.09.2018 / 07:28
1
answer

Problem receiving Push Notifications FCM with the app closed. Ionic 3 and Angular

Good day folks, it is my first publication on the site, I apologize if I do not comply with all the publication rules because I do not know them in detail. I will comment on my problem .. I have an app with ionic 3 and angular, which works wi...
asked by 06.02.2018 / 15:55
1
answer

query ui.router assigns a # before routes

I'm trying ui.router but I have a problem whenever the ui-sref comes before a # <!DOCTYPE html> <html ng-app="app"> <head> <title>Indice</title> <script src="/angular/angular.min.js"></script>...
asked by 07.06.2016 / 06:45
3
answers

JWT Authentication for Web APP?

I've seen that it's very common to use token-based authentication for RestFul APIs, the question is, can it be implemented for a Web application?     
asked by 29.03.2017 / 19:29
1
answer

Problems with reactive images and webpack

I am learning reactjs and I want to know how to render an image with webpack and react That's my loader and here I try to render     
asked by 13.11.2017 / 07:57
2
answers

Validate the existence of a token in the browser's localStorage

the question that I have a token saved in the localstorage and what I want is that if that browser token is deleted I automatically redirect to the login window if the need to refresh the window or something else, imagine that I made a manually...
asked by 04.12.2018 / 01:45
1
answer

What is the problem with this query?

Good, I have this query that I do with my API REST in NodeJS router.get("/create/:id/:name/:img",function(req,res){ var query = "INSERT INTO ??, (??, ??, ??) VALUES (?, ?, ?)"; var table = ["demos", "id", "name", "img", req.params....
asked by 11.01.2017 / 22:49
0
answers

I want to restart my PM2 every 30minutes

There is an option called cron_restart and the default value is “1 0 * * *” I would like to know what is the value that I have to put in order for my PM2 to restart every 30 minutes     
asked by 25.12.2018 / 05:56
1
answer

Mongodb and dates

I have a problem, when I save a date, it is saved like this: 2018-12-04T00: 00: 00.000Z and I would like the time to be 23:00 not 00:00 2018-12-04T23: 00: 00.000Z It's an api, with express and node function SaveOfferDay(req, r...
asked by 04.12.2018 / 10:21
1
answer

celebrate npm package with Nest Framework

There is some way to use the NPM celebrate package with Nest Framework ? In the documentation only refer to class-validator , but although this has many advantages I used with Express and other frameworks the middleware celebrate to v...
asked by 12.12.2018 / 19:35