Tagged Questions
1
vote
0answers
12 views
passport object empty not getting called in passport/express app, not calling deserializeUser
I have an angularjs app on a different domain calling requests to an express based api. For example, I have an app running on localhost:9000 and connecting to an api @ localhost:3000.
For express ...
0
votes
0answers
24 views
sockets.io using eronious websocket adress
So for some reason the web socket address is the head of my html in URL form and on load socket.io fails to connect. In the JavaScript console I get this output;
WebSocket connection to ...
0
votes
1answer
14 views
Passport Session management when cookies are disabled
I am making a web app with AgularJS as my front-end and Sails(NodeJS + Express) as my backend.
I am using passport (passport-local) for authentication and it all seemed to work great until I tested it ...
0
votes
0answers
33 views
nodeJS draw image into a canvas (not working)
I try to make a game with nodeJS in Back-end and AngularJS in Front-End but i have some problems.
I use express to configure routes in NodeJS and ngRoute in AngularJS. Each page have a view and a ...
0
votes
1answer
40 views
Passing auth token from backend to frontend (Node.js to AngularJS)
Being relatively new to JavaScript, I am trying to implement Amazon login in Node.js / Angular.js app.
Here is the piece from Node.js Passport Amazon authentication middleware example:
...
0
votes
0answers
17 views
sails.js api working locally but not when building app
so I am messing up with the sails.js library and i am trying to create myself a local API so I can request from my android app the data. the app working just fine locally when I test it on the browser ...
0
votes
1answer
11 views
grunt-uncss creating duplicate selectors
I'm using grunt-uncss to cleanup my css selectors in a bootstrap / angularjs project I'm working on. I'm using the urls option because I need uncss to parse css at runtime since it's an angular app. ...
0
votes
0answers
8 views
Cannot access jst.js and importer.css in sailsjs+angularjs app
I've set up my sailsjs+angularjs app with nginx as a reverse proxy server.
When I lift sails app and try to access it in browser with local domain name which I've set up app don't display correct.
...
0
votes
0answers
31 views
Authentication when using AngularJS, Express.js and PassportJS
I have AngularJS for front - Node.js(Express.js) for sever side web application and having trouble getting the authentication.
this is login page URL.
http://localhost:3000/#/extra-signin
After I ...
-3
votes
0answers
27 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
45 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
2answers
69 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
25 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
1answer
28 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
53 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
46 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
17 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
23 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
21 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
27 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
93 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
13 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
85 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
26 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
77 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
20 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
31 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
32 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 [closed]
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
22 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
20 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
28 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
55 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
53 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
37 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
28 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
46 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
57 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
29 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.
...