Tagged Questions
0
votes
0answers
20 views
Architecture for login system on MEAN stack?
I'm developing a web app on the MEAN stack (MongoDB, Express, AngularJS, and node.js). I'm developing a login system, and will also have some of the Angular routes protected so that only logged-in ...
0
votes
2answers
17 views
server-side changes for $locationProvider.html5Mode(true);
server code:
app.get('/', function(req, res){
console.log('executed "/"')
res.render('home');
});
app.get('/partials/:name', function (req, res) {
console.log('executed partials:name');
...
0
votes
1answer
18 views
Adding a dynamically generated page as a partial view in an AngularJS app
I'm currently learning Node.js and AngularJS. To learn how to develop with these technologies, I've been playing with the Phone Catalog sample app found here.
The thing I can't figure out is, how to ...
1
vote
1answer
23 views
Node.js app works on foreman but not heroku. 404 Error
I'm using Yeoman/bower/grunt to build an angular app. The app runs perfectly on foreman. In my search of similar questions on stack most other people just forgot to create their Procfile or had ...
1
vote
0answers
53 views
web server using nodejs for my angular app
I am developing an angular app, i would like to run the app using web server using node.js as like angular-seed project https://github.com/angular/angular-seed. I copied the angular seed app in my ...
0
votes
1answer
39 views
How do I use the “version” property in package.json as the app's directory in grunt?
I'm managing a project written in angularjs, with the default directory structure, excluding the app directory which uses versioning (ie. "app/0.0.0/", "app/0.1.0/" etc..).
I'm trying to use grunt's ...
0
votes
0answers
85 views
MEAN stack installation gives 304 and 404s
I am getting these 304 and 404s when I go to http://myipaddress:3000 after I tried to install the MEAN stack
$ node server
Express app started on port 3000
GET / 304 973ms
GET ...
1
vote
1answer
24 views
NodeJS + Socket.IO can't get json to return
I'm using Socket.IO, AngularJS, Request, and Express and I am trying to pull in some data from a request and then send it off to the client. Here are my functions:
var getJsonFromJsonP = function ...
1
vote
0answers
29 views
How to do Integration Testing for (Angularjs) Web Apps
I'm developing an Webapp.
It consists of 2 parts. A node rest server and an angularjs client.
The app is structured this way: Rest Server <--> Api Module <--> Angular App
The server is ...
1
vote
1answer
76 views
Routing security flaw in Angular/MEAN.io?
I just installed the MEAN stack (MongoDB, Express.js, AngularJS, Node.js) and opened up the example program (as found on mean.io) and they have a basic app that you can login to and create blog ...
1
vote
1answer
189 views
How a fully scalable SPA with a solid backend is built
the past few weeks I've been hard at work with Angular, Node, TDD, Heroku, Amazon S3 etc. Trying to get a better picture of how a fully scalable SPA with a solid backend is built, working with grunt, ...
0
votes
1answer
30 views
View templates and routes in node.js with AngularJS
Trying to understand how to implement AngularJS in a node.js express app. After setting up express, I need 2 things: routing and a template engine, so normally I would need to do as follows to set the ...
4
votes
1answer
2k views
Allowing cross-domain calls with Yeoman (1.0) grunt server
I've been using Yeoman 0.9 up until yesterday when I decided to use the beta 1.0 release on OS X. I use Yeoman to develop an angular app.
With the Yeoman 0.9-->1.0 migration of my app done and ...
6
votes
1answer
684 views
Using grunt server, how can I redirect all requests to root url?
I am building my first Angular.js application and I'm using Yeoman.
Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'.
I'm running my angular ...
0
votes
2answers
43 views
setting textarea text based on current input field
I have two input fields
input(ng-model='form.firstName', name='firstName', id='familyName')
and
input(ng-model='form.lastName', name='lastName')
I also have a textarea field
...