0
votes
0answers
7 views

transfer data between Mongoose schemas, Express, AngularJS

Creating some simple web app, i've faced a problem transfering some mongoose information from one schema to another: here is my two schemas: var userSchema = new mongoose.Schema({ email: { type: ...
0
votes
0answers
13 views

NodeJS Express CSRF Error

I am receiving the following stack trace error from my Node server. My app runs on Angular and uses Node to interact with the API. Error: Forbidden at Object.exports.error ...
0
votes
1answer
27 views

Elegantly hiding the navbar in a single page MEAN app.

I have an app that has a navbar on everypage, so I factored it out into index.jade that inherits from my layout.jade file. This is fine for 99% of my app. The only place it runs into issues is on ...
0
votes
0answers
6 views

Get Mongoose object from referenced Model

I have a problem with getting the object from a referenced model. I have a model restaurant, where i am referencing an article. This is just an demo for me to test how this is working, but i am not ...
0
votes
1answer
11 views

nodejs events is being called multiple times

I have been working on an CMS on nodejs hosted at https://github.com/techunits/mopublish/tree/develop. Here I have added few event hooks e.g. mpObj.emit('MP:FOOTER', '<center>MPTEST Plugin ...
-3
votes
0answers
21 views

sample application using node.js,angular.js and mongodb

I am new to these technologies and i am trying to develop a simple application using these technologies to learn how to insert data and images into dtabase,how to retrieve those values and page ...
0
votes
1answer
15 views

How to make frisby.js scripts “pause” during chained executions of apis

I want to test a session timeout using Frisby.js. So I want to call our login API and call an API to demonstrate the user is logged in. Then I want frisby.js to wait 20 minutes for the session to ...
0
votes
0answers
13 views

Workflow for API-based app built on node.js

I am building a reporting app on node.js and Angular. I am using the Quickbooks Online API to pull in reports information. I have to add custom fields to the reports I pull in and save this ...
0
votes
1answer
53 views

AngularJS + Bootstrap Pagination

I have all my data in multiple JSON: http://localhost:3000/images?page=1 http://localhost:3000/images?page=2 http://localhost:3000/images?page=3 ... So with AngularJS I would like a pagination ...
0
votes
0answers
31 views

How are different DB modules maintaining connection in Nodejs

I am using yeoman's angular-fullstack generator as reference I want to know how does MongoDB maintain connection as the connection to the DB is done in the main app.js file and after that there is no ...
3
votes
1answer
20 views

Grunt installation in mac os

I want to create angular js app using bootstrap, for that I installed node.js pkg file in my mac. Afterwards I installed yeoman ($sudo npm install --global yo). Documentation says if we install yo ...
0
votes
1answer
22 views

How do I check for XHR in node

Ive seen another question answered about checking for ajax requests in express by looking in req.xhr however this comes through as false when angular is requesting a template, surely this is ...
0
votes
1answer
13 views

Heroku Unknown Provider

Good morning, I'm trying to deploy a sample angularjs project on Heroku but I get this error: Uncaught Error: [$injector:unpr] Unknown provider: aProvider <- a This is my Gruntfile.js: ...
0
votes
1answer
54 views

Node.js: POST request sent twice by system

I send JSON POST data via a form in a MEAN environment to my server. On the server side, I process the data inside of a waterfall function, using the async library, including various operations such ...
0
votes
1answer
20 views

Posting to multiple collections with a single form in AngularJS, NodeJS, MongoDB, Mongoose, and ExpressJS

I want a single form to post to two collections in mongo. What the HTML would look like <form> ...Field1 ...Field2 ...Field3 ...Field4 </form> What the controller would ...
0
votes
4answers
32 views

Mongoose, AngularJS, NodeJS

I am using a MongoDB database. For the front AngularJS. Also, I am using Mongoose. I have: app.get("/images", function(req, res) { mongoose.model('Image').find(function (err, images) { ...
0
votes
1answer
16 views

How to use angular routing for directly access to content

how can i use Angular routing to access clickable content ( appears when click on a specific tab) when insert URL directly in browser? for example I have a menu when i click on first tab some ...
1
vote
0answers
32 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. Express is ...
0
votes
0answers
31 views

sockets.io using eronious websocket address

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
16 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
45 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
2answers
70 views

Passing web token from backend to frontend (Node.js + Express to AngularJS)

Being relatively new to JavaScript, I am trying to implement Amazon login in Node.js + Express / Angular.js app. Here is the piece from Node.js Passport authentication middleware example: ...
0
votes
0answers
18 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
12 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
10 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
32 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
28 views

Send free sms verification code to mobile using node.js [closed]

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
52 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
73 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
16 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
13 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
67 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
50 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
19 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
24 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
24 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
124 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
14 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
97 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
86 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
21 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
33 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
23 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
21 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 ...