Tagged Questions
0
votes
1answer
23 views
How do MEAN stack components fit together? [on hold]
I'm sure it will be obvious, but let me say upfront that I'm a newb to web development. I've been taking Udacity, Coursera, and Code Academy classes, as well as reading intro books, but nowhere can I ...
0
votes
1answer
16 views
Do you always have to use jade in Node js to display html pages
I have been making little web apps this summer and new to web in general and i have been using the node.js express framework. I use jade for templating, and it really has been an inconvenience using ...
0
votes
2answers
16 views
Nodemailer: ERR_CONNECTION_RESET with AngularJS and NodeJS with POST
Following is the post data I am trying to send to NodeJS from AngularJS using POST method:
$scope.doStuff = function(foo, bar) {
$http({method: 'post', url: '/send', data: {foo: foo, bar: bar}}).
...
0
votes
1answer
7 views
Grunt Server and WebStorm javascript debugging (and SpyJS) not working
I have an app that I made with yeoman, grunt an angular JS (typical setup - image included below). I'm trying to debug my project with spyjs (or even regular javascript debugging) but I can't seem to ...
1
vote
0answers
14 views
Rails signature does not match amazon s3
I had uploads to Amazon s3 working with AngularJS and NodeJS but now am using Rails as the backend. So I figured all I'd have to do is translade NodeJS code to Rails. Source: ...
0
votes
1answer
16 views
Routes in Mean.JS
I have a case where I need to expose the following server routes:
/cats/:catId
/cats?name=:name
How should my server routes look? I tired this:
app.route('/cats/:catId')
.get(cats.read)
...
0
votes
0answers
9 views
Using Nodemailer with data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0
Hi I am using the following nodemailer code:
// setup e-mail data with unicode symbols
var mailOptions = {
from: results.send, // sender address
to: results.recieve, // list of receivers
...
0
votes
0answers
23 views
How to deploy nodejs, angularjs and apache
I'm working on the seed project now
I want to use
nodejs as api server listening on port 5001,
express as back-end framework,
angularjs as front-end framework,
and apache as static file ...
0
votes
1answer
19 views
post input type file to server node.js from angular service call
I have simple multipart formdata
<form action="/upload" enctype="multipart/form-data" method="post">
<span class="btn btn-file">
<input type="file" name="file" ...
0
votes
0answers
20 views
AngularJS, expressJS passportJS return user object after social auth
This bugs me for two days and I cannot find good example on the internet for this.
I have two routes for facebook authentication using passport js, so I have like:
app.get('/auth/facebook', ...
0
votes
1answer
44 views
Sending AngularJS form to NodeMailer to send email
I have a built an email form in a modal instance using AngularJS that contains the field sending email, recipient email, subject, and email content. The form uses input boxes and ng-models to keep ...
0
votes
0answers
27 views
Installing Node, NPM, yo, angularjs - trying to follow thinkster.io tutorial
I am following this tutorial: http://www.thinkster.io/angularjs/eqq96ECqkT/1-getting-your-project-set-up-with-yeoman
I have node installed:
terminal -> node -v -> v0.12.0-pre
I have npm installed:
...
0
votes
0answers
28 views
angular js file upload using http post method
I am tring to upload a file using angular $http method to node backend
I want to upload the form with additional form fields.
This is my code
var data = new FormData();
...
0
votes
1answer
34 views
MEAN: What is the best way to keep a watch on a json file
Some Info:
I am creating a json file from matlab which updates every second with the latest coordinates.For writing file from matlab to json I am using JsonLab.
My problem :
The json file refreshes ...
0
votes
1answer
46 views
Not able to get the value from node.js backend back to my $http angular ajax call success block.when alerted the value of data it is empty
When posting data from angular passing the data to nodejs server and data is getting successfully inserted in mongodb.
data is requested from angular using $http call to the node.js server but the ...
0
votes
1answer
19 views
creating standalone node js application installer
I have already read a lot of links that answer the question.
But I had a specific doubt,so here we go!!
Our App uses angular js for UI and node js backend server
This is the way I have planned to ...
0
votes
0answers
16 views
How to organize your REST API with express created by yo's angular-fullstack generator?
i used angular-fullstack to scaffold my nodejs application.
Basically i want to use URL's like this:
/api/tvshows/20/seasons/1/eposides/4.
For every Endpoint the generator creates a new folder in ...
0
votes
1answer
39 views
Angular JS - Express - Passing data from one controller to another - Security and Best Practices
I'm new to Angular and Node.js, so the question might be pretty basic. I'm using the seed at https://github.com/btford/angular-express-blog for my angular-express project and if you look at the ...
0
votes
2answers
41 views
How can I pass an array to the server when using $http?
I have an array of ids that I want to pass to the server. The other answers I have seen online describe how to pass these ids as query parameters in the url. I prefer not to use this method because ...
0
votes
0answers
26 views
Getting a grunt version related error with Mobile Angular UI in node
I'm trying to get the mobile-angular-ui demo code (from http://mobileangularui.com/) and upon trying to run "npm install" in the project directory, I get the following error:
...
0
votes
2answers
36 views
How to create web server with nodeJs
I m using following code for creating server with node js but whenever i run local host on this port in browser it always show index.html file. What is wrong i do ..
var http = require('http');
var ...
0
votes
1answer
23 views
Angular + Jade | Array from controller to script tags
Is there a way to access an array that I have on my controller and accurately render it in my <script> tags on my jade template.
For example:
Controller.js
$scope.myArray = ...
1
vote
1answer
18 views
How to get object passed into view from Node for use in Angular?
node
app.get('/profile', function(req, res) {
res.render('profile.ejs', { authUser : req.user });
});
angular
function Ctrl($scope) {
$scope.user = authUser; // from the view
}
I ...
0
votes
0answers
26 views
huge files size when browserifying angular
I am just trying gulp + angular + browserify app and got a huge browserified file, about 2M. While all it does just require angular and a sample controller.
// setup gulp task
...
1
vote
0answers
25 views
Protractor times out opening Chrome Driver on Centos
I am trying to run the angular-phonecat tutoral on Centos 6.5, Chrome version 33.0.1750.146, npm 1.4.3, and node version v0.10.31. I am trying to run the protractor tests:
npm run protractor
But I ...
0
votes
1answer
37 views
How to make AngularJS check and use data on the Rails backend?
Like say I wanted to make sure someone signing up did not use a pre-existing email address. How to make the AngularJS file interact with the Rails user model/users database to see that? Is NodeJS ...
0
votes
0answers
14 views
grunt ngtemplates task 100% cpu
The grunt task ngtemplates runs indefinitely (almost an hour and not finished) with 100% cpu utilisation. If i comment this task, then the build finishes.
And the build task with ngtemplates runs and ...
0
votes
1answer
42 views
Updating multiple rows with node-mysql, NodeJS and Q
I am using node-mysql, node-js, and Q promises.
I have successfully updated, deleted, and inserted single rows using the above. As well as inserted multiple rows in a single statement in my test case ...
0
votes
1answer
29 views
Upload file with AngularJS and Express.js
I'm trying to upload files using AngularJS and Node.js (with Express.js). I'm using danialfarid/angular-file-upload. In my view (I use jade) I have
label Upload avatar
input(type="file" ...
0
votes
1answer
15 views
How to access file uploaded by $http and HTML5 FileReader
I am trying to upload an image inside an Angular app, the code looks like this:
var f = document.getElementById('product-image').files[0],
r = new FileReader();
r.onloadend = ...
0
votes
2answers
17 views
Blank page with in Angular app due to Cloud9 c9.live.proxy cookie
I've got a nodejs / angular app that occasionally gives me a blank page when I load it, along with $injector:modulerr errors in the console.
If I open my Chrome resources, I can locate and delete the ...
0
votes
0answers
56 views
Can't define a name for my Angular app when using with RequireJS
I decided to use RequireJS with AngularJS.
<script data-main="/app.js" src="/bower_components/requirejs/require.js"></script>
<div ng-app>
Hello {{"angular-require_test"}} ...
0
votes
0answers
10 views
WebStorm not able to debug Fabric.js
I am using WebStorm for a project that combines Angular.js, Node.js, and Fabric.js. I can debug anything in the project except anything inside Fabric.js, including a custom Fabric.js class that I ...
0
votes
0answers
27 views
Uncaught Error: [$injector:unpr] Unknown provider: sessionInjectorProvider
I am new to angular js, loopback and nodejs,
While implementing the authentication in the angular app, I am getting the below mentioned error
Uncaught Error: [$injector:unpr] Unknown provider: ...
0
votes
0answers
11 views
swipe function is not getting called
i am new to angular .i want to implement for mobile touch events.i write a small code
var myApp = angular.module('plunker', ['ui.bootstrap','ngTouch']);
...
0
votes
1answer
21 views
How much Secured is JWT and similar Approaches
I have been reading about JWT and CSRF token and as far as i can understand they are the same thing(Correct me if i'm wrong). But i'm having some doubt. So my questions are:
Is JWT really secure?
As ...
-1
votes
0answers
28 views
Drupal 7 with Angularjs, maybe Nodejs server too. When to use, for what? [closed]
About me: I'm totally new to Drupal 7. Rather new to Nodejs and Angularjs, but they're so fun and easy to pick up :)
I've read that using the Services module, it's possible to add a REST api to ...
0
votes
0answers
13 views
Mongodb connection fails after sometime using angularjs+ nodejs [closed]
every one
Iam using angularjs nodejs and mongodb in my project,Everything is working fine while running in locally,whenever i deployed into server,everything is working fine for ...
0
votes
0answers
86 views
Trouble installing Yeoman Angular dependencies
I'm trying to use Yeoman to generate an Angular framework but keep getting errors. The directory failed to put bower_components in.
I've read a few other threads with similar problems and have tried ...
0
votes
1answer
23 views
AngularJS: How to retrieve Foursquare API array data?
I'm trying to retrieve venues list using angularjs. Using console.log(data), I can see the the angularJS successully calling the foursquare api.
But how do I parse through each id element in the ...
1
vote
1answer
23 views
scope isn't updating on $apply use
I have a piece of $scope text that should update dynamically.
<span ng-bind="user.balance"></span>
after pushing a button, new value of balance is received and should be displayed here.
...
-1
votes
1answer
27 views
Get Data from a callback and save it to a variable in AngularJS
Following is my service code, which is saving an image -
angular.module("app").service('fileUpload', ['$http', function ($http) {
return {
uploadFileToUrl: function(file, uploadUrl){
...
0
votes
0answers
22 views
Can I make the Angular.js instead of RIA for web application?
Recently I'm trying to change my development os platform.
[Current]
OS : windows Server 2008
WAS : IIS7
DB : MSSQL 2008
LANGUAGE : ASP.NET, C#
RIA : Embed IE - C# Form(smartclient) - view graph, ...
0
votes
0answers
20 views
-bash: bower: command not found
I am trying to clone this repo https://github.com/jbroquist/bookingappdemo built on mean stack and after doing npm install and npm install -g bower successfully when i do bower install i get this ...
0
votes
0answers
18 views
Cross origin restriction when using grunt connect proxy and using oauth service
Okay, I have setup 2 applications, one is an angularjs application that is scaffoled by yeoman, that runs on port 8888 in localhost and one is an express rest api, that runs on port 3333 in localhost.
...
0
votes
0answers
23 views
Unable to send and receive res/response on http://localhost:3000/#/ url …
Since login page is my index page, i want to authenticate user name and password using mongodb.
Res/res works fine when url is something like this localhost:3000/#/login . But same not working on ...
0
votes
2answers
35 views
How do I send a request from server.js to a controller?
If I need to post a data from a controller to my main server.js, I usually do it like this:
$http.post('/auth/signup', user);
This goes from a controller
app.post('/auth/signup', function(req, ...
0
votes
0answers
20 views
Add page relation to notes with BreezeJS
I was looking for a very simple and basic implementation of Breeze with AngularJS and Node. I found ZZa and Hot Towel but then found something very basic here
It's a simple notes app based on ...
0
votes
0answers
12 views
passport.js auth0 strategy Cross rigin request error
I am trying to use auth0 for social validation in my web app
i configured the app like this
auth0 : {
domain : "mydomain",
clientID : "myid",
clientSecret: "mysecret",
callbackURL: ...
0
votes
1answer
26 views
angular-velocity Uncaught Error: [$injector:modulerr]
I have no idea why the angular-velocity module is not initialized although I included all required scripts as written here (https://github.com/cgwyllie/angular-velocity)
Here is my HTML index.html
...