Tagged Questions
-3
votes
0answers
21 views
Send free sms verification code to mobile using node.js [on hold]
How to send verification code to mobile using node.js or Angular.js.i have found one option i.e. Twilio module but it is paid service.Is there any other option to send free sms to mobile phone ?
0
votes
2answers
33 views
Issue with “npm install” after setting up AngularJS project with Yeoman
My issue appears after (or even during) the creation of the angular project with the command:
yo angular
during the process of installing all the devDependencies from the package.json ("npm ...
0
votes
0answers
27 views
error in connection the socket.io from different server
I am making a mobile app with node.js REST API as backend and Angular as frontend both will be on different server. the angular app will later be on attached with phonegap to make it hybrid App.
I ...
0
votes
0answers
15 views
Passport and Angular - save login after reload page
I did a Passport Authentication in my NodeJS application - on login page user send a request to server and server response with message or userdata. I have a factory:
.factory('User', ->
name = ...
0
votes
1answer
20 views
Enable to get socket.io file on client
I using a angulajs as frontend and node.js REST API as backend both our on different server. I want to use socket.io, but enable to get socket.io.js file on client from the node.js server i am using
...
0
votes
0answers
12 views
Angular $sce.insecurl wont trust URL templates from its own domain
I'm getting an error from angular when trying to run my site, its set up on an apache server running a reverse proxy so that I dont need
:3000
to run it.
However I'm getting Error: ...
0
votes
0answers
7 views
Best way to get google token angular-fullstack generator
I'm using Angular-fullstack generator to develop an application.
By default, it brings the Google authentication code so I just have to replace appid and appsecret fields. It uses passport.js to ...
0
votes
1answer
25 views
Angular not defined in node.js app
I'm a node.js novice and after going through a simple tutorial, I've tried to load up an open source application that uses node.js and I'm getting the error below. I'm sure it's a trivial ...
1
vote
0answers
31 views
Starting Node.js server w/ Gulp “connect” breaks on live reload (Angular app w/ html5 mode)
I'm trying to solve a problem that's been bugging me for awhile.
The Scenario:
The problem is when I use Gulp to start up my local server w/ Live Reload. It starts up my Angular app just fine, but ...
0
votes
0answers
35 views
What is the best way to develop Node-webkit desktop app with Angular?
I need to write a parser which should go to different real estate sites and parse data from there and store it in db. I am going to develop it with Node-webkit using Selenium Chromedriver and I am ...
0
votes
0answers
16 views
Angular JS Restangular: How to remove() multiple records using array of ids as request body?
The Restangular.remove() function sends the request object as query params(EXAMPLE: /users?ids=1&ids=2&ids=3) instead of send these ids as a body params(JSON format)
Example Code:
...
1
vote
0answers
19 views
AngularJS problems with $resource and web servers
I have been testing this code for 2 months, it is the first exercise in my tutorial to learn AngularJS.
The challenge is to count all .json files in a folder and increment it with 1 so that when I ...
0
votes
0answers
20 views
Yeoman Angular-fullstack errors
I'm attempting to install the Yeoman Angular-fullstack but when I run grunt I get the folowing errors:
WARN [plugin]: Error during loading "/Users/mac/mcoseo8/node_modules/karma-jade-preprocessor" ...
0
votes
1answer
25 views
Array of parameters in Restangular
I'm trying to pass some filters to my getList method of Restangular.
In my app I have this:
var filters = Filters.get();
var query = {};
for (var i in filters) {
query['filters['+i+']'] = ...
0
votes
1answer
66 views
Yeoman Generator; What do these errors mean?
I'm trying to install the angular-firebase Yeoman generator. I get the errors listed below. What do they mean? I tried installing the generator with sudo and as a regular user. The errors were the ...
0
votes
0answers
12 views
Yeoman : Live connect localhost not resolving
I'm new to Yeoman and Angular. I've just installed both via the NPM and tried running grunt serve. I'm not getting an error on the CL but when the browser fires its not resolving / it's not loading ...
0
votes
0answers
59 views
Heroku deployment error: at=error code=H10 desc=“App crashed”
I am trying to deploy my AngularJS Yeoman Generator-AngularFire Node Express app to Heroku. I am able to push to Heroku successfully as it shows
Fetching repository, done.
Everything up-to-date
...
0
votes
0answers
25 views
Develop Rest API and server-side rendering simultaneously in SailsJs
I am looking towards the SailsJs framework for nodeJs to build an app.
Initially I planned to build just a REST API in sails and manage the Front-End using AngularJs, the API would also be useful for ...
0
votes
0answers
67 views
Uncaught ReferenceError: request is not defined
i am working on simple node js module ...
a module that, when i give an ID and a request rate, returns a readable stream which emits location data for the corresponding satellite...
i am trying to ...
1
vote
0answers
17 views
C# SocketIO4Net.Client nodejs
I am having a problem with the handshake with a socket.io i thing this is because of the headers
A first chance exception of type 'System.Net.WebException' occurred in System.dll
Error Event: Error ...
0
votes
2answers
27 views
Using AngularJS html5mode with express.js
Client-side:
when("/page/:id", {
templateUrl: "partials/note-tpl.html",
controller : "AppPageController"
});
$locationProvider.html5Mode( true );
Html:
<a ...
0
votes
0answers
31 views
requirejs with nodejs and angularjs
I'm trying to build the skeleton of what one day might be the foundation of my next project. I started with generator-cg-angular (https://github.com/cgross/generator-cg-angular) as it includes most of ...
0
votes
0answers
40 views
making an api call through node js and retrieve the values [on hold]
i am using this blog for implementation
http://ejohn.org/blog/node-js-stream-playground/#postcomment
but not sure whther I am doing correct...
i am working on simple node js module ...
a module ...
0
votes
1answer
21 views
Grab object out of mongodb and place it in the $scope
I am trying to grab the identifier of a product out of the url (eg. /product/<productId>), grab the Product object out of mongodb and make that object accessible in the $scope of my application. ...
0
votes
1answer
19 views
Angular js watch session Storage
I have some data from different controllers that are stored in the sessionStorga using https://github.com/fredricrylander/angular-webstorage. The data is stored ok and it's available in the current ...
1
vote
1answer
22 views
Error while posting data from one server to another server running on different ports
I am writing a program which will send a mail on clicking a button in html using nodemailer.
My Application server is running on 8383 port and the node server is running on 8080.
I am ...
1
vote
0answers
18 views
Node debugging remote debugging
I have set up a Ubuntu 12.04 Virtual Box with MongoDB 2.4.8 and node. It is configured and run by Vagrant. My project skelletion was created with angular-fullstack (coffeescript client side, less, ...
1
vote
0answers
20 views
Update AngularJS template HTML after running Google Closure Compiler on app code
My application assigns variables to the $scope in a controller, like $scope.myVariable = 123; After I run Closure Compiler, that code gets turned into $scope.a = 123; and $scope.b = 123; and so on...
...
0
votes
1answer
26 views
Express/Angular, not redirecting after Passport authentication
In Express I'm using:
var router = express.Router();
router.get('/auth/*', function (req, res, next) {
next();
})
app.use(router);
app.all('/*', function(req, res) {
res.sendfile('index.html', { ...
0
votes
0answers
48 views
Node/Express 'Access-Control-Allow-Origin' CORS not working
I'm using Angular to call a GET request to Express/Node:
$http.get('/auth/'+type).
success(function(user){
}).
error(function(err){
if (err){
$scope.alerts.addAlert('danger',err);
...
0
votes
0answers
22 views
How to handle multiple API subscriptions properly
I'm building an app which requires multiple subscriptions to the Instagram API's geographies endpoint. Basically, as photos are updated near several different locations Instagram sends a POST request ...
0
votes
1answer
35 views
How to send the file to node.js and back end when using ng-flow to take the file
I am using angularJS's ng-flow to upload a img in my app. the prob is that I successfully upload the file flow and I am not able to send the file to node.js and save it to mongoDb.
Code ...
1
vote
1answer
49 views
Using Mean.io for my SPA application
I have a new project which will consist of two parts...a client - SPA using AngularJS and server side using Nodejs - MongoDB. Many articles recommend using Mean.io when developing similar projects, ...
1
vote
0answers
27 views
Npm install; Failed at the [email protected] prestart script
May I know what is the problem here? I am clueless...
Thanks.
npm ERR! [email protected] prestart: `npm install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] ...
1
vote
2answers
42 views
How to find the position of matching brace in data?
I am new to Coding and at present i am working on NodeJs file system module.
I am working on a file which contains large data and that data stored as a string.
My problem is , I am not able to find ...
-1
votes
0answers
23 views
Understanding passport.js, node.js and angular
I'm trying to set up a small passport service using angular locally.
This project works very well, but I'm trying to enable the facebook/google/twitter login, I get an error each time (just cloned ...
0
votes
1answer
39 views
Angular/Node/Express/Passport Cross Domain Problems - Enable CORS Passport Facebook Authentication
It's been two days and a million tries to enable CORS when trying to authenticate a user with Facebook using Passport in NodeJS/Express.
The error I get on Chrome is this:
XMLHttpRequest cannot load ...
0
votes
0answers
9 views
not able to sent a mail using Mean.IO
I need some help.
I am new in MEAN.IO and try to sent a test mail using Mean.IO
in development.js under config/env directory
emailFrom: '@gmail.com', // sender address like ABC
mailer: {
...
0
votes
3answers
52 views
How to install bower in ubuntu? node is successfully installed
iam new to angular.js. iam trying to install bower in Ubuntu 12.04 by entering following code line. node is successfully installed in local machine.
sudo npm install -g bower
getting below error
...
0
votes
1answer
17 views
Sequelize - always return arrays even when only one record is retrieved
I'm using Sequelize with Postgres and Angular.js in the front-end.
I'm setting up some routes to expect arrays in the response:
'getData': {
method: 'GET',
// isArray: true,
url: 'stuff/:id',
...
1
vote
1answer
28 views
Uploading file Angular.js FormData
I'm uploading a File with Angular to my Node server. Sometimes the image is not uploaded and I get req.files "undefined" in the server side and I can not figure it out why. I think it has not to do ...
0
votes
0answers
10 views
angularjs socket doesn't disconnect
I have added disconnect function in angular btford.socket-io like this:
disconnect: function() {
return socket.disconnect();
}
and call it using my socket object.
...
0
votes
1answer
11 views
require is not defined in angular
I am using angularjs where i have created a js file(loginCtrl.js) and i have inclused a controller.
I have defined my db connection and schema in another file(server.js) and i want to include that ...
0
votes
0answers
18 views
Restangular query with filters
I have an error with my query using Restangular that is not returning my filtered data. I've tried all the below:
$scope.welcomes = Restangular.all("projects").getList({'name': "g"}).$object;
...
0
votes
0answers
27 views
How to upload a user profile photo with Angularjs to the mongodb database (user model) (mean stack)?
I want to be able to upload a single photo to the user object as a profile photo. I've uploaded photos in the past with multiparty, but now I'm new to angularjs and am trying to figure out how this is ...
0
votes
1answer
32 views
Node Webkit shows uncaught nodejs error when using angularJS
I have been building and debugging an Angular.JS application for several months now running from a browser without any issues whatsoever, however I am now in the stages of packaging it to run in node ...
0
votes
1answer
22 views
How to select and add data in existing file using Node JS?
Can some body please explain , I have a large data in my json file and i have to select at some point like data === smp('Report').
smp( "Reports" ) {
smp( "firewall_real_time" ) {
...
1
vote
0answers
37 views
Unable to upload image blob to AWS S3 using node.js & angular
I am unable to upload my images to AWS S3
{ [InvalidParameterType: Expected params.Body to be a string, Buffer,
Stream, Blob, or typed array object] message: 'Expected params.Body
to be a ...
0
votes
1answer
39 views
route not working in angularjs
I am using angular along with node.
I am using routes to redirect page.
Onto my html page i have defined 2 links as:
<!DOCTYPE html>
<html >
<head>
<title>My Angular ...
0
votes
1answer
16 views
require giving error in angularjs
I am using angular with nodejs.
I have created a .js file where i am defining the database connection.
File looks likes:
var mongoose = require('mongoose');
var db = ...