Questions tagged [mean-stack]

The MEAN stack is a methodology that employs MongoDB, Express, Angular / AngularJS, and Node.js to provide a complete end-to-end system. One of the primary motivations for such a stack is that it is pure JavaScript at all ends. Two different implementations are available: mean.io and mean.js

MEAN (an initialism for Mongo, Express, Angular, Node) stack can be implemented just as LAMP stack is implemented, with or without a specific framework or architecture as the four technologies can be implemented in completely different ways.

A ready-to-go implementation is available at meanjs.org.

Related tags:

3884 questions
1
vote
1 answer

Could not use ui router in angularFire-seed repo

I am using this repo: https://github.com/firebase/firebase-angular-starter-pack/tree/master/angularFire-seed as the starting point of my app and I would like to replace the native angular route with ui router. However, the firebase connection will…
George Jor
  • 501
  • 1
  • 7
  • 18
1
vote
1 answer

Promise in meanjs app controller "then" is not a function

In my meanjs app created using meanjs generator and auto generated CRUD-module, for income below, I want to customize the promise returned by the get method so that I can call methods and do transformations on the retrieved data. So i attempt to…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
1
vote
1 answer

How to use passport js local and basic strategy on the same endpoint?

I'm using a MEAN Stack based on a Yeoman generator and I'm trying to password protect my api endpoints. I want to be able to use local and basic strategies on the same endpoint so I can call the API from external sources and use it in my…
1
vote
2 answers

How to correctly install Node modules to subfolder?

What is the official method for causing the node_modules folder to be created in a subfolder? I am using Bower for client-side files and happily installing them under a "client" folder. It would be great to use NPM for server-side dependencies and…
Fred Lackey
  • 2,351
  • 21
  • 34
1
vote
0 answers

Changing the default route of a mean-stack package

I am working on a custom MEAN package and cannot figure out how to change the default route from index.html to the page I choose. When added, the package creates a "Books" shortcut in the navbar of the default home page. When clicked this goes to…
Virge Assault
  • 1,356
  • 6
  • 18
  • 40
1
vote
2 answers

Grunt Livereload not showing HTML changes

On my MEAN stack application, I'm trying make changes to the HTML view files and see those changes as I make them using Grunt's livereload. Grunt's livereload is working fine in the sense that it detects changes in my HTML files and refreshes the…
Himmel
  • 3,629
  • 6
  • 40
  • 77
1
vote
2 answers

Reuse export.function in same document

I am building a settings module in a mean.js stack. And I want to re-use an existing function. But how? Here is some demo code: controller-x.js var mongoose = require( 'mongoose' ), errorHandler = require( './errors' ), time = require(…
1
vote
1 answer

How to modify configuration properties in Mean.js?

I am currently working in a cloud environment (cloud9) and have installed the Mean.js (http://meanjs.org/) package. Following the tutorial at IBM (http://www.ibm.com/developerworks/library/wa-mean1/index.html) the final step involves running the…
WJA
  • 6,676
  • 16
  • 85
  • 152
1
vote
1 answer

Using templateUrl in directive freezes app

I have a MEANstack app which behaves really weird. Creating a directive using templateUrl freezes the app. The same directive works using html code with template alone. dashboard.html:

Recent

1
vote
3 answers

Basic node/mongo/mongoose connection not working

I'm new to MEAN stack development. I've created a database in MongoDB called 'framework' and a collection called 'users' with some json in. I can see that's all there and happy using mongo commands through Mac terminal. Now I'm writing some Mongoose…
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
1
vote
2 answers

Starting Node/express project in terminal error

I was working on a MEAN stack tutorial last night, https://thinkster.io/angulartutorial/mean-stack-tutorial/ , and everything was working fine. Then this morning when I try to start it again I keep getting an npm error. It says cannot connect to…
Darragh Kenny
  • 31
  • 1
  • 8
1
vote
1 answer

MongoDB Local | Mongod --noauth | Issues

I worked on a MEAN example quite a while back, but when I returned to testing something again, Mongo is giving me issues about authorization. (All these commands are executed on Windows cmd - when run as an Administrator) I have done the following…
HeshMap
  • 31
  • 4
1
vote
0 answers

ng-grid: Trying to enable enableFiltering option dynamically

I'm using AngularJS and the ng-grid module (v3.0, ui.grid) and as the title says, I'm trying to activate the enableFiltering dynamically in a grid, but i can't and i don't know why. I can change the enableCellEdit behavior on the fly, but the same…
Rubén Jiménez
  • 1,835
  • 5
  • 21
  • 29
1
vote
1 answer

MEAN: Jade Template problems with conditional Meta Tags

I have the following within my jade layout doctype html html head meta(charset='utf-8') meta(http-equiv='X-UA-Compatible', content='IE=edge') meta(name='viewport', content='width=device-width, initial-scale=1') if (pageDescription) …
Dave Gordon
  • 1,815
  • 4
  • 30
  • 52
1
vote
1 answer

Would Node.js be the right choice for this application?

I spent the last couple of days figuring out what development stack to use for the interactive student platform I'm planning to build. I figured out that the MEAN stack may suit the job very well. However, I face a dilemma whether to use Node.js as…
jroeleveld
  • 456
  • 4
  • 12
  • 22