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

Why MEAN.js applications'URL start with #!

I just started my first MEAN application build with MEAN.JS. After discovering how mean.js organise the application, I wonder why URLs start with /#!/. For example for the login page I would like to have: http://example.com/login instead…
DeRictus
  • 46
  • 6
1
vote
0 answers

Mongoose - how to use model inheritance in a sub document collection

I have this model setup. I want a parent record with an array of sub docs. The sub docs have a schema, and use inheritance. // // Children function abstractSchema() { Schema.apply(this, arguments); this.add({ name: String …
sambomartin
  • 6,663
  • 7
  • 40
  • 64
1
vote
1 answer

Angular unknown provider and Cannot POST /signup

Before you say anything, I know the solution probably is to inject the dependency but I checked other open source codes and compare it with mine, it is exactly the same. While theirs work while mine's not working Currently the problem is at route…
sinusGob
  • 4,053
  • 12
  • 46
  • 82
1
vote
1 answer

mean.js AngularJS Menus Service assigning roles to page

I am looking at meanjs and am unable to set a menu to be available for a certain user role. According to the docs http://meanjs.org/docs.html#menus roles (Optional; Default: ['user']) - An array indicating the roles that are allowed to view this…
ak85
  • 4,154
  • 18
  • 68
  • 113
1
vote
1 answer

Cross Domain POST Request on different Apps

I have two MEAN Stack applications running on my local computer. One is client app running on port 88 and second application is server app that is running on port 99. I just wanted to call API of server app from my client app. I used $http in my…
1
vote
0 answers

How to save multilanguage data in moongoose?

i try to learn Mean.js and i need to use multilanguage support in my app. I chose this schema to save data "_id": { "name": { en: "English", fr: "Français" } } in my server model: var…
TsarS
  • 144
  • 1
  • 14
1
vote
1 answer

Mean stack two index pages and 2 deiffrent ui views?

I want to do the following: i have a single program with 2 diffrent "layouts", one in localhost:3000 and one in localhost:3000/admin In both i have diffrent css files rendered, both have diffrent template structure, but both! share the same js. I…
totothegreat
  • 1,633
  • 4
  • 27
  • 59
1
vote
2 answers

Token with angularjs

My current problem, is how to redirect signup route to homepage route with the token. The backend of this route does create the token, but for the frontend I couldn't figure out of how to do it. .controller('UserCreateController', function(User,…
airsoftFreak
  • 1,450
  • 5
  • 34
  • 64
1
vote
1 answer

node-schedule only running once

I am running a MEAN stack application and am struggling with proper implementation of a reoccurring task. I have added the following line to my server.js file: require('./node_scripts/schedule/node_sched.js'); It then points to this file: var…
Matt Smith
  • 553
  • 7
  • 15
1
vote
1 answer

MongoDB is posting no data with Mongoose

I am making an app with the MEAN stack and I am having trouble POSTing data to my database. When I push the submit button, the form data is being cleared, like it is supposed to when the POST is sucessful, but when I go to the database, there is a…
T94j0
  • 87
  • 10
1
vote
2 answers

REST API. AngularJS to Express. Error 500;

Please help me to figure out the logic behind Express REST API. I am moving my self-education from pure AngularJS to MEAN stack, so please bear with me. I have the following angular controller, which takes data from my contact form and put it into…
jonny pixel
  • 259
  • 6
  • 13
1
vote
2 answers

node throws module.js:340 error

I'm using the MEANstack for a project and hit up this error when trying to load the model from seed.js: module.js:340 throw err; ^ Error: Cannot find module '..api/callout/callout.model' at Function.Module._resolveFilename (module.js:338:15) at…
Ioana Grozav
  • 135
  • 1
  • 7
1
vote
1 answer

Is it a good idea to develop two separate node application for serving webservice and for consuming webservice to render it on browser?

If we are running two different node instance one of each purpose( webservice engine/data engine and webservice consumer) will it be good or keeping both the purpose in same application will be better ?
user2357023
1
vote
1 answer

Mocha it() test only passes if there is no prior test

I am testing a MEAN app. Each test is just making sure I'm getting the right response codes back. In my routers, they are successfully returning json using res.send(). The second test given here will only pass if the first one is commented out. If I…
chris
  • 1,831
  • 18
  • 33
1
vote
1 answer

How can I use orientDB in MEAN stack

I am working on mean stack. and i want to use orientdb instead of mongodb. I just want to know how can I replace mongodb with orientDB. OR How can I customize mongoose so that i can use orientDB. Thanks in advance.