Questions tagged as 'node.js'

1
answer

Add url json event in fullcalendar

I'm using fullcalendar, nodejs, and mongoose. I have already been able to generate the json file. But by passing the path in fullscalendar js, I can not retrieve events. I created a test file in json and called it as follows: script(type='...
asked by 12.06.2015 / 16:06
1
answer

accessing apps on heroku giving error

I'm trying to install an app in heroku but I'm not getting it, so I can not see the status of my apps. My apps is a server in node.js and socket.io in heroku. There's a deploy option for the site that connects to git hub up so quiet but when I t...
asked by 16.06.2015 / 05:18
1
answer

Doubts in webservice development for APP (android) and WEB (php)

Hello, we are developing an android APP and this will make a query in a webservice (which is not yet done) to validate data requested by APP. The same project runs on the web and is developed in php, jquery etc. So I have 2 applications one fo...
asked by 23.04.2015 / 16:11
1
answer

Make select inside a setInterval and fill an array in nodejs

I'm making an application that needs to be checking in the database if there was any change using nodejs. The application works, however, when I have more than one record in the table, it gets duplicate data that I keep in an array. For example:...
asked by 24.04.2015 / 23:15
1
answer

Error connecting MongoDB

I'm having trouble connecting MongoDB. Follow the code: var express= require('express'); var app= express(); var bodyParser= require('body-parser'); var db_string= 'mongodb://localhost/teste' var mongoose= require('mongoose'); var db= m...
asked by 28.04.2015 / 10:52
2
answers

Grunt - folder node_modules outside the project

Well, I'm starting GruntJS, my node_modules folder has 50MB, so for every project, it gets bad. I would like to know if you can leave a default node_modules folder in one place to use in all projects without having to stay within the project'...
asked by 28.08.2014 / 03:14
1
answer

Handlebars compile function with parameter parameters

I want to minify my template during the compile period of it in NodeJS Searching on I found that handlebars.compile(templateLoaded); has more options besides the template parameter. I would like to know how to pass the minify parameter...
asked by 22.07.2014 / 05:15
2
answers

How to put url dynamically for facebook comment boxes, specific to each page

In a response in php we can do this: <div class="fb-comments" data-href="<?php echo $url; ?>" data-width="687" data-numposts="7" data-colorscheme="light"></div> <?php $url = (!empty($_SERVER['HTTPS'])) ? 'https://'.$_...
asked by 15.06.2014 / 22:39
2
answers

Nodejs or flash solution for live video streaming!

Hello, I already posted several posts about the subject but I have not yet got a definitive solution, I need to do streaming of live video and that the player that will transmit rode in any browser (possibly html5) I've tried WebRTC and it w...
asked by 23.06.2014 / 21:27
1
answer

"TypeError: Crud.Select_products is not a function", I am getting this error when trying to access a method of an exported class, in NodeJS

Server.js file var express = require('express'); var Crud = require('./database/Crud'); var app = express(); app.get('/api/home', function(req, res){ let results = Crud.Select_products(); res.send(results); }); app.listen(5000, (...
asked by 02.01.2019 / 20:48