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 do I access values from an ng-repeat directive and place them in an array?

I can currently display the desired values in text in the DOM:
  • {{value.Session_Date}}
  • I need each of the values that is repeated to be accessible, so that each can be…
    Jack
    • 23
    • 6
    1
    vote
    0 answers

    AngularJS RESTful API Best Practices to maintain $scope

    It is not clear to me the best practice for maintaining $scope of objects when making calls to a RESTful API. The problem I'm having is working with a Schema that has nested sub arrays, see below. Is it best practice when making RESTful API call…
    CampbellGolf
    • 812
    • 12
    • 27
    1
    vote
    1 answer

    MEAN-Stack MongoDB Sub Array Delete - Works in IDE, not in API

    I have a [user] document stored that contains a nested sub-array [profiles],[favorites]. I am simply trying to delete($pull) a favorites from a given profile based on the favorites name. { "_id" : ObjectId("558d53eebdd9804820090fa1"), "name" :…
    CampbellGolf
    • 812
    • 12
    • 27
    1
    vote
    1 answer

    What is the best way to implement permission levels in the MEAN stack?

    I've been following the examples in the book "MEAN Machine", and I've implemented a simple token-based authentication system that makes the contents of a certain model only available to authenticated users. I'd like to take this to a more complex…
    zcserei
    • 577
    • 7
    • 30
    1
    vote
    0 answers

    Could I use MySQL and MongoDB under the same MEAN.js App?

    I would like to know how could I setup a mean.js application using MySQL and MongoDB at the same time?, this code made an example of how to do a relational mean.js app, he uses sequelize that enables access to MySQL... could I use mongoose and…
    Jonathan Solorzano
    • 6,812
    • 20
    • 70
    • 131
    1
    vote
    2 answers

    how to determine logged in user in a mean stack application

    I'm writing an app based on mean.js boiler plate In my server code (express) I need to make some decisions which are based on knowing who the logged in user is I have passport local accounts implemented. How can I determine in the server code the…
    Eugene Goldberg
    • 14,286
    • 20
    • 94
    • 167
    1
    vote
    0 answers

    Easiest way to create MEAN app

    I am trying to create MEAN app & ran following commands: npm install -g generator-meanjs yo meanjs After this I was able to setup the application. Problem is I can see lot of dependency being added (faceboom/twitter etc) & the structure is little…
    SharpCoder
    • 18,279
    • 43
    • 153
    • 249
    1
    vote
    1 answer

    Page Title gets Duplicated in MEAN.io

    Any idea why my page title is displaying twice? I am running a vanilla mean.io on openshift wih minor modifications other than basic modifications to a few values from default to custom (app name, meta tags such as keywords and description). …
    Ronnie Royston
    • 16,778
    • 6
    • 77
    • 91
    1
    vote
    1 answer

    how to properly send and receive form data in an angular/node application

    I'm writing an app based on mean.js boiler plate I have a form in my angular view, which need to send some formData:
    Eugene Goldberg
    • 14,286
    • 20
    • 94
    • 167
    1
    vote
    1 answer

    Passing variables into a query in mongoose in the first argument

    I am using MEAN stack, i have an entry like this in my mongodb { "_id" : ObjectId("5577467683f4716018db19ed"), "requestMatrix" : { "1698005072" : { "rideId" : "641719948", "status" :"accepted" },"1698005073" : { "rideId" : "641719545", "status"…
    yash
    • 87
    • 10
    1
    vote
    1 answer

    Update data from table to mongodb

    Is there any framework or technique to simply update data edited in table and stored in mongoDB I am using angularjs, node.js and mongoDB. My 'by hand' idea is to: track edits in angular table that will return json with updated fields send REST…
    userbb
    • 2,148
    • 5
    • 30
    • 53
    1
    vote
    1 answer

    Mean Stack MissingSchemaError: Schema hasn't been registered for model "User"

    I have tried many solutions given on stack overflow but nothing worked in my case... here is my code... server.js which is entry point of my application. process.env.NODE_ENV = process.env.NODE_ENV || 'development'; var config =…
    tmw
    • 1,424
    • 1
    • 15
    • 26
    1
    vote
    1 answer

    Mongoose find unique tags

    Currently saving an array of tags for each user. The issue I'm running into is how to search for unique tags (so I can do a type ahead for adding new users) Right now if I get a match, the function returns the WHOLE tags array that contain the tag…
    Justin Young
    • 2,393
    • 3
    • 36
    • 62
    1
    vote
    0 answers

    Very slow MongoDB when retrieving a lot of documents (node + mongoose + express)

    My express application needs to list the number of users I currently have in my mongo database. That works fine when I ask for a small number of users (i.e. ~100), but if I ask for numbers in the tens of thousands I begin to see a huge delay in the…
    syymza
    • 679
    • 1
    • 8
    • 23
    1
    vote
    1 answer

    mean.io Custom packages loading sequence

    I've created two custom packages like below: -mean package pkg1 -mean package pkg2 When I load a web page, on main menu bar, "pkg1" menu shows first then "pkg2" menu shows. How could I change it to display "pkg2" menu first then "pkg1" menu? e.g.…
    jin chong
    • 103
    • 7