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

Typescript Compilation Issue

Typescript current version is 1.6.2, but when I am installing typescript and checking the version through "tsc -v" it gives me typescript version 1.0.3.0, due to which I am not being able to compile typescript. Kindly tell me what should I do now.…
1
vote
1 answer

How to Keep track of tab opened from the main page?

I'm new to web development and I'm finding my way through it. I have the following situation: User Logs into the web-app. He/She will be presented with four different module links on his console. When userA clicks on one of the links , a new TAB…
1
vote
1 answer

Cannot find './lib' for mongoose Heroku

I have a MEAN stack app that I can't upload to heroku due to the error: Cannot find './lib/' for mongoose or some module. I have no idea why this is a problem or how to fix it. The application works fine on localhost but heroku does not want to take…
Programmer MJM
  • 87
  • 1
  • 10
1
vote
1 answer

'Couldn't find that formation' heroku deployment error

I am trying to deploy a MEAN stack (MongoDB-Express-Angularjs-Nodejs) app on Heroku. After I push my code with git push heroku I get the following error "Scaling dynos... failed! Couldn't find that formation". I have checked for a solution with…
Trewaters
  • 949
  • 3
  • 13
  • 23
1
vote
0 answers

Why this behaviour of Node.js + MongoDB?

These are the benchmark report of simple Node.js server and single MongoDB instance(no sharding) connected via native driver. Both Node server and MongoDB are on same machine. Benchmarking done on AWS instances. These are load testing results were…
1
vote
1 answer

Token is not defined - MEAN Stack

I've been following a book tutorial called mean machine. It has been super helpful. I am setting up authentication and can't figure out this error I'm getting. Any help would be greatly appreciated! I can't seem to find the answer anywhere…
1
vote
0 answers

After impersonate with Passport.js, can't log back to the previous user

I have a NodeJS/Angular (MEAN) application in which I managed to impersonate another user (for admins). I created a route /auth/autolog/:userId (req.profile contains the user with Id :userId): exports.autolog = function (req, res) { …
jblanche
  • 158
  • 9
1
vote
1 answer

http post request with x-auth(mean stack)

My mean stack sample application which i got from this link : https://github.com/dickeyxxx/mean-sample runs perfectly on my heroku server, posts and logins without any failure. It uses tokens when a post request is made. However, since i am not…
Serhan Oztekin
  • 475
  • 7
  • 20
1
vote
2 answers

Select at least one checkbox validation

I have the array of checkboxes from which I want to select at least one checkbox and want to display the validation error How can I do that? Here is my code
Dau
  • 8,578
  • 4
  • 23
  • 48
1
vote
1 answer

Node.js / Express.js Removing user from request, removes it from database

Here is the code: exports.delete = function (req, res, next) { console.log(req.user); req.user.remove(function (err) { if(err) { return next(err); } else { res.json(req.user); } }) }; Of course this function is…
Shota
  • 6,910
  • 9
  • 37
  • 67
1
vote
2 answers

Node js serving old versions of modified angular files (instead on new ones)

I'm programming a project using the MEAN stack. All fine, except with the static files. I have some rules in the Node router file to serve the static files. And it's working, but then I have done a change on an Angular file, but the Node server is…
VictorArcas
  • 630
  • 2
  • 7
  • 23
1
vote
0 answers

GruntJS: Grunt Build in MEAN.JS

I'm using grunt and MEAN.JS. Before the last commit in git I execute grunt build and created dist directory with: application.js, application.min.css and application.min.js The NODE_ENV varibale is development. I add the new references in…
Aral Roca
  • 5,442
  • 8
  • 47
  • 78
1
vote
2 answers

How do you connect server side properties into angular controller

I'm using the yeoman meanjs generator and am a bit confused. In my core Angular controller I have this setup: angular.module('core').controller('HeaderController', ['$scope', 'Authentication', 'Menus', function($scope, Authentication, Menus) { …
Dave3of5
  • 688
  • 5
  • 23
1
vote
2 answers

How to make custom theme in MEAN

I am new in MEAN and going to create new website using MEAN. I have created the package in MEAN using the command mean package I have also override the default templates using the app.set('views', __dirname + '/server/views'); command…
Dau
  • 8,578
  • 4
  • 23
  • 48
1
vote
1 answer

Opinions welcome: Why MEAN stack and Node.js?

I am curious as to the fundamental reasons why we choose MongoDB, Node.js, Express.js, and AngularJS? Here are the reasons I can think of: MongoDB works well with JSON and data models, is faster than SQL; Express and Angular gives the…