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

Cannot figure out why ng-view will not work in simple mean stack app

I am having trouble setting up ng-view. This is my first mean stack app. I got everything working within index.html. However, when I set up ng-view I am getting errors stating that I have my javascripts in a public folder. My index.html is in…
Winnemucca
  • 3,309
  • 11
  • 37
  • 66
1
vote
2 answers

Express selecting multiple model data

I'm learning the MEAN stack and want to select multiple models when routing with express. I need to select one model then based on it's values a few others. Here's the main model: var mongoose = require('mongoose'); var MatchSchema = new…
user59388
  • 159
  • 1
  • 10
1
vote
3 answers

MissingSchemaError: Schema hasn't been registered for model "Users"

Im learing the MEAN stack form a thinkster.io tutorial, and it seems that something went very wrong near the end of it. Node doesn't seem to find my schema despite the code looking like this: Users.js (model in ./models) var mongoose =…
Piotr Jaworski
  • 584
  • 1
  • 5
  • 20
1
vote
1 answer

Thinkster MEAN Stack Tutorial problems with routing

I have been following this tutorial on thinkster.io: https://thinkster.io/mean-stack-tutorial/ Everything works fine until I get to the section where we setup mongoose, then I start to hit problems. First of all in the section "Creating Schemas with…
Paladine
  • 11
  • 2
1
vote
0 answers

Can not connect with API , so couldn't retrieve post from db?

I got problem while I move into https://github.com/DaftMonk/generator-angular-fullstack. Before my project was working. Here is code for frontend and backend part related to comment. I am getting all time error 404. I don't know why I cannot find…
pm1359
  • 622
  • 1
  • 10
  • 31
1
vote
1 answer

custom google search api failed to load resource: net::ERR_EMPTY_RESPONSE status of 401 (Unauthorized)

I am following the tutorial at this blog for a simple mean app using a google custom search api, and I run a search and get a null returned on grunt and “Failed to load resource: the server responded with a status of 401 (Unauthorized)” on the…
Urasquirrel
  • 1,461
  • 1
  • 18
  • 34
1
vote
1 answer

"mean init" fails during admin user creation

I follow the basic installation tutorial on for the mean stack on OS X. MongoDB is running and all dependencies are believed to be installed. During init of my first app, the script fails when asking for the admin user password (it fails before I am…
Karl Ivar Dahl
  • 1,023
  • 2
  • 11
  • 23
1
vote
1 answer

Webapp architecture: Putting python in a MEAN stack app

I currently have a small webapp on AWS based on the MEAN (Mongo, Express, Angular, Node) but have a python script I would like to execute on the front end. Is there a way to incorporate this? Basically, I have some data objects on my AngularJS…
abgordon
  • 667
  • 1
  • 6
  • 16
1
vote
1 answer

Update function only store name property in database not url property,instead store undefined

I used nodejs, mongoose and angular to implement RestAPI with mean stack, I tried to update provider record in my database. Here you can find what i have in put method: I have my Schema description here This is what i am getting in console. Object…
pm1359
  • 622
  • 1
  • 10
  • 31
1
vote
1 answer

error with gulp-ng-annoate, couldn't process source due to parse error

I am getting trouble with error that is generated with gulp-ng-annoate. Error message is Error: app.js: error: couldn't process source due to parse error I've found the other thread which seems to have same problem with me but that answer does…
fkkcloud
  • 167
  • 4
  • 11
1
vote
1 answer

Change root of Mean application

I am working on mean application,i have a requirement to load my html,css from another url like("/myApp") rather then root, so how can get this? i mean i want to start my app form url "localhost:3003/myApp", bydefault it is running on…
Prabjot Singh
  • 4,491
  • 8
  • 31
  • 51
1
vote
1 answer

Save a Mongo document with exception

In a mean stack app I create a new user in User Schema then a new doc in Doc Schema var UserSchema = new Schema({ username: String, password: String, docs: [{ type:…
Greg
  • 473
  • 1
  • 5
  • 19
1
vote
1 answer

Passport LocaStrategy signup redirect issue

I am trying to redirect user after signup on Passport passport.use('local-signup', new LocalStrategy({ usernameField : 'username', passwordField : 'password', passReqToCallback : true}, function(req, username, password, done) { // asynchronous …
Greg
  • 473
  • 1
  • 5
  • 19
1
vote
1 answer

Unable to post form details using Express js

My express code: var express = require('express'); var bodyParser= require("body-parser"); var app = express(); app.use(bodyParser.urlencoded({ extended: false })); app.set('view engine', 'ejs'); app.get('/', function(req,…
Ashwin Kannan
  • 91
  • 1
  • 11
1
vote
1 answer

MEAN JS DB Race Conditions

I have updated this question to be more specific based on feedback below Is it possible in a MEAN stack application to have a race condition if two users both make an HTTP request that does the following: read a record, make some changes to the…
ademartini
  • 1,311
  • 1
  • 14
  • 24