Questions tagged as 'node.js'

0
answers

return object returned from the database to the front end

I'm not understanding why these returns On server node.js: //Insert user router.post('/', async function(request, response) { let object = { name: request.body.userName, password: request.body.userPassword } le...
asked by 23.05.2018 / 03:10
0
answers

NodeJS - Server Upload Error

My server works normally, I use the nodemon, but when uploading it always accuses this error (node: 9420) [DEP0096] DeprecationWarning: timers.unenroll () is deprecated. Please use clearTimeout instead. I think it's simple, although it works...
asked by 14.05.2018 / 01:49
0
answers

Create custom color palette in Material Design Lite

I'm starting in web development with NodeJS, and also in using Material Design Lite. I would like to insert two colors that are not in the default MDL color palette ( link ). I looked up the Github Project Wiki ( link ), but I have questions abo...
asked by 13.05.2018 / 19:04
0
answers

Mongodb remote backup

I have an application in production using NodeJs and MongoDB through Mongoose. This same application has a version that runs on a local offline server. Both databases have the same data and back up the app online to offline. It turns out that no...
asked by 11.05.2018 / 23:10
0
answers

Mongo access using fetch javascript

Hello, I'm developing a simple system with nodejs and javascript. The system consists of the registration of a driver, a passenger and a race containing a driver and a passenger. I am using mongodb as a database. I have already created the AP...
asked by 12.05.2018 / 17:37
0
answers

undefined: 1 SyntaxError: Unexpected end of JSON input

I made a dailycoins system for my discord bot, everything was ok, but now when I went to make another command, out of nowhere the bot gave an error. Here's my code: const Discord = require('discord.js'); const client = new Discord.Clie...
asked by 09.05.2018 / 23:33
0
answers

Restful implementation of express routes do not work on the server

I have a Restful API implemented in NodeJS running normally locally, with all the routes responding, all right. However, when putting into production on the KingHost server only the root route works. I made a basic application for testing alt...
asked by 10.05.2018 / 19:28
0
answers

How to recover the data in the api query in NODEJS

Good morning people. I'm consuming an external api and I'm getting the data as follows: { "place_id": "151508663", "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": "348425570"...
asked by 14.05.2018 / 16:45
0
answers

How to get the next strong value with jquery?

Given that I have the following HTML structure, how could I get the value, after </strong> and before <br> <strong>Categoria: </strong>Padaria &amp; Panificação<br>     
asked by 12.05.2018 / 21:33
2
answers

Hosting Ruby application with Sinatra

I'm starting my studies in Ruby with DSL Sinatra. For this I installed Node.js then ruby with Sinatra. My applications locally are working normally. But I would like to make them available for web browsing. (so you can place the call anywhere...
asked by 21.05.2018 / 16:30