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
0 answers

how to integrate sails.js with a project based on mean.js boiler plate

I'm writing an app, which is based on mean.js boiler plate. The time has come to integrate some realtime features, and a prospect of using sails.js seems very compelling. I was wandering if anyone has done this sort of integration, having mean.js as…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
1
vote
2 answers

Update the todo list without refreshing the page in express nodejs app

I am a newbee to the express nodejs applications. I want to make a todo list. This is how it looks so far. My question is when I add a todo, it takes some time to show the change since it reloads the page. How can I see the change in realtime…
Alex Stack
  • 15
  • 1
  • 1
  • 3
1
vote
1 answer

Angular nested repeat, save to database not working

I'm using a MEAN application, and now I want to read data from my database, allow users to edit it, and update the changes to the database. Everything is working fine, except for the nested repeat, which value's I'm able to get, but not save to the…
user3004798
  • 191
  • 1
  • 1
  • 11
1
vote
1 answer

Saving subdoc ref and parent document simultaneously

I have a users model with a ref to company. My data is as follows: { "name":"justin", "notes":"hello notes", "company": {"name":"acme inc"} } Is it possible to save my data as a single call or would I need to save my company model first, then…
Justin Young
  • 2,393
  • 3
  • 36
  • 62
1
vote
2 answers

how to pass a value from node/express app to an AngularJS controller

I'm developing an app based on mean.js boiler plate. In one of my Angular controllers, I need to "know" whether the app is running in dev, test, or prod. When the hosting Node app starts, this is indicated via the NODE_ENV environment variable, so…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
1
vote
0 answers

Unable to install Mean Cli on mac

I get following exception when I run sudo npm install -g mean-cli module.js:338 throw err; ^ Error: Cannot find module 'are-we-there-yet' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load…
Coder
  • 3,090
  • 8
  • 49
  • 85
1
vote
1 answer

Plain MEAN Stack or a MEAN Framework like mean.io?

I have very decent HTML and CSS skills and a basic understanding of JavaScript. I'm currently designing a system where different users can store an inventory list (a separate list for each user). I started with plain Mongo, Express, Angular and Node…
julian
  • 51
  • 1
  • 7
1
vote
1 answer

Query node api/MongoDB with Restangular

I'm learning the MEAN stack. I have a node api hooked up to MongoLab hosted DB. The api returns objects like this (api/messages): [ { _id: "55074ce3c21903c9cce6d02a", name: "some random message", __v: 0 }, { _id:…
Tony Barnes
  • 2,625
  • 1
  • 18
  • 29
1
vote
1 answer

How to use MongoDB findOne() with mongoose

I'm having troubles using the MongoDB findOne() function together with mongoose. controller exports.show = function (req, res) { Fahrt.load(req.params.fahrtenId, function (err, fahrt) { res.jsonp(fahrt); …
julian
  • 51
  • 1
  • 7
1
vote
1 answer

Mean.js whole page does not refresh after username login

I'm using mean.js. I hope I'm giving you all the information you need to help, but I am stuck on something. My main layout.server.view.html document has a number of data-ng-include statements loading various 'widgets' like a sidebar. Each of these…
1
vote
1 answer

How to deploy MEAN Stack to web host

I have a node API and an angular front end project (via grunt, bower, yeoman flow structure) as two separate github repositories. I am trying to push them both to production through Heroku. Coming from a rails bg where everything in the app exists…
Abhas Arya
  • 470
  • 1
  • 5
  • 19
1
vote
1 answer

Mean Angular Express

I am new to MEAN. I am trying to write a program which list existing products and create new products. first, I use a "NEW" link-button and I want it to show a form in the page that I am already at, when that button is clicked BUT when I click on…
Saeed Baba
  • 188
  • 2
  • 14
1
vote
1 answer

What does a MEAN (stack) Node.js app directory look like in comparison to a rails (stack) directory?

This is my first time looking at a Node stack and I'm a little confused about some basic stuff since I learned web development using Ruby on Rails. I understand what a rails directory looks like. demo/ ..../app ......../assets *Javascript, CSS,…
Keon
  • 1,741
  • 3
  • 17
  • 27
1
vote
1 answer

MEAN.io setup with WebStorm

MEAN.io http://mean.io/#!/ is getting popular for FullStack MEAN framework (Mongo db, Express, Angular JS, Node), Im able to follow instruction and setup MEAN.io so far successfully, now I want to integrate MEAN.io with WebStorm so I can proceed…
Aqib Mumtaz
  • 4,936
  • 1
  • 36
  • 33
1
vote
1 answer

Angular-fullstack get user id

I'm using angular-fullstack to build a single page application, and in one of my controllers I'm trying to assign a user's id to a variable. The code $scope.getCurrentUser = Auth.getCurrentUser; returns function () { return…