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

Unable to override views in meanjs

I want to override article page in mean.io. I have created a module comments and added this code in routes. angular.module('mean.comments').config(['$stateProvider', '$viewPathProvider', function ($stateProvider, $viewPathProvider) { …
Bilal
  • 2,645
  • 3
  • 28
  • 40
1
vote
1 answer

Why Does MongoDB give a E11000 duplicate key error on ng-click in a form

While using the MEAN stack, I ran into some issues trying to update my data via the PUT method. I have a very simple Angular Form:
user2795688
1
vote
0 answers

Linking to an external url stored in MongoDB with Angularjs

I have a basic CRUD application written using the MEAN stack. In this I have an 'issues' model of which a number of properties are stored, including an external url which a user inputs. I am trying to display this url so when the user clicks on it…
rtkilian
  • 11
  • 1
1
vote
1 answer

how to make mongodb 'upsert' to insert new documents as well as update existing ones

in my MEAN app, I have a situation, where I'm reading in some csv data line by line, and using 'upsert' to update the existing records, as well as to insert those, which do not match the 'CSCOpportunityID' field value: if(metaFields.subjectCategory…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
1
vote
1 answer

How to use external JS libraries in MEAN JS app

I am building a webapp using MEAN JS. I need to use TypedJS for providing a text animation. How to use this js library. I tried to add typed.min.js to Config->ENV->all.js file. But it didn't work.
Shubham Sinha
  • 79
  • 2
  • 12
1
vote
0 answers

status 143 error in Heroku for MEAN JS app

This app works fine in development locally but breaks in production. Heroku docs are not much help. Here are the logs. Any ideas? What other file would you need to see in order to gather required info? 2015-07-08T19:43:20.171096+00:00…
user2623706
  • 527
  • 1
  • 6
  • 19
1
vote
1 answer

mongodb dup key error 11000 crashes node server

Duplicate key E11000 is the expected behavior but crashing the server is not. The duplicate key error comes from my unique index on email. controller method: exports.saveOAuthUserProfile = function(req, profile, done) { User.findOne({ …
isimmons
  • 2,016
  • 2
  • 20
  • 32
1
vote
3 answers

Which module in the MEAN stack collects mongodb dependencies?

>> Error: Cannot find module 'mongodb/lib/mongodb/connection/read_preference' I am running a grunt server that can't find mongodb connection read_preference. As a result, my DOM was broken.
1
vote
1 answer

What is the best way to make new mongoDB documents off of an array using node and mongoose?

I'm using MeanJS and the user inputs a list of objects that each need to create a new document. Simultaneously I need to create another separate document with pointers to each of those objects from the array and link each of those objects back to…
AStack41
  • 39
  • 4
1
vote
2 answers

mean.io when ran using gulp no result

I installed mean.io with necessary components. In my system(ubuntu) /home/mukund/MeanApp3 is the app directory In terminal i entered the directory and ran gulp. Then i got the following Invoking gulp - development [17:37:22] Using gulpfile…
Mukund
  • 1,107
  • 2
  • 18
  • 40
1
vote
1 answer

Practice for Routing Handler in MEAN Stack?

I have an application on Express 4.x integrated with the Twilio API and dependent on the Input from the users' phone, I will respond with different XML files that may or may not be created dynamically. Where am I supposed to put this theoretical…
steviesh
  • 1,740
  • 6
  • 19
  • 33
1
vote
1 answer

Pass param into MEAN app with pretty URL?

What is the best way to pass a param into a MEAN application while maintaining a pretty URL? I CANNOT use storage on the client for this. The following Express route will successfully bootstrap the param in the Angular application but the URL is…
G. Deward
  • 1,542
  • 3
  • 17
  • 30
1
vote
0 answers

Socket.IO & Angular - $scope objects undefined in sockets

I'm writing a simple chat program using Angular/Socket.IO. I've tried approaching a few ways and each time I run into this problem: at some point data that's been set within my controller in angular's $scope becomes undefined when attempting to…
John Halbert
  • 1,320
  • 2
  • 12
  • 23
1
vote
1 answer

Putting angular templating in the public folder

For a job that I am interviewing for they use the hottowel generator from John Papa. I have been working through it. The organization is nice. I am confused about the public folder containing the html files. At my bootcamp and on the express…
Winnemucca
  • 3,309
  • 11
  • 37
  • 66
1
vote
0 answers

MEAN app crashing Safari

I wish that I could be more specific in this question, but I don't have much information to go off of. I'm working on a MEAN app that has to populate a lengthy form's default values with values pulled from the database, using ng-bind. This works…
dt801ts
  • 53
  • 1
  • 8