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 to MEAN hosting

I'm having trouble understanding how the whole hosting for MEAN applications is done. If I want to use openshift for instance to host it. I understand that it hosts the nodejs webserver and the mongodb but what about the angular app? I will need a…
Diogo Barroso
  • 915
  • 3
  • 9
  • 22
1
vote
1 answer

MEAN stack user delete

I've got a users list with delete button on /users url. My delete route looks like this: app.route('/users/:userId') .get(users.read) .put(users.updateById) .delete(users.delete); app.param('userId', users.userById); But problem is,…
ketysek
  • 1,159
  • 1
  • 16
  • 46
1
vote
1 answer

Is this MEAN stack design-pattern suitable at the 1,000-10,000 user scale?

Let's say that when a user logs into a webapp, he sees a list of information. Let's say that list of information is served by one of two dynos (via heroku), but that the list of information originates from a single mongo database (i.e., the nodejs…
George
  • 6,927
  • 4
  • 34
  • 67
1
vote
3 answers

How do I resolve this: Error [$injector:unpr] Unknown provider

I'm a newbie to the MEAN stack and am unclear on how to resolve an error in my AngularJS code. This is the error I keep getting: Error: [$injector:unpr] Unknown provider: dataFilterProvider <- dataFilter I'm not quite sure where to try to resolve…
tonejac
  • 1,083
  • 3
  • 18
  • 32
1
vote
1 answer

How to use a different export in AngularJS & Express?

I have a MEAN.JS application. The code below is my AngularJS controller, which runs a query to retrieve all articles in my MongoDB…
Tom
  • 734
  • 2
  • 7
  • 27
1
vote
1 answer

Click to deploy MEAN Stack on Google Compute Engine can not direct access app

I have used the Click to deploy MEAN Stack on Google Cloud Compute Engine. After deployment I can via SSH view the index.html on my local macbook. But trying to take a look at it with direct access will not work. I have checked for "Allow HTTP…
CodeR
  • 13
  • 3
1
vote
2 answers

AngularJS : factory $http.get request keep getting html file as return

may i know why i keep getting html file as return from my angular factory ? this is my backend route function ensureAuthenticated(req, res, next) { if (!req.headers.authorization) { return res.status(401).send({ message: 'Please make sure…
John Lim
  • 3,019
  • 4
  • 31
  • 41
1
vote
2 answers

meanjs - angular is not defined

I'm just learning mean.js . Just did the installation steps in http://meanjs.org . But when loaded in browser, console is showing error Uncaught ReferenceError: angular is not defined . do we need to include angularjs separately ?
I'm nidhin
  • 2,592
  • 6
  • 36
  • 62
1
vote
1 answer

Problems starting a freshly installed Mean Stack application

I'm trying to start a new mean stack application. However i only get this error when I'm running grunt to start the server: [nodemon] v1.2.1 Running "watch" task [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting…
Ole Henrik Skogstrøm
  • 6,353
  • 10
  • 57
  • 89
1
vote
0 answers

How do I make my style in core.css override style coming from scaffolding.less or any other css src in a mean.js application?

I am building an application using the mean.js framework. I am adding styles to core.css file in the modules/core/css in the public folder. But when I do an inspect element on the page I see the styles being overridden by a styles coming from the…
Rohit Rane
  • 2,790
  • 6
  • 25
  • 41
1
vote
1 answer

Globally display environment (show env variables on front-end of web application)

I am working with Node and process.env.NODE_ENV is not available on the client (process itself is not available on the client). What is the best way to tell the client what environment you are in -for example, development or production?
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
1
vote
1 answer

How can I prevent OpsWorks Deployment from defaulting to deploying to my Custom Layer?

I currently have a relatively simple OpsWorks MEAN stack configuration, consisting of two layers. One layer is the Node.js App Server layer, and the other layer is a Custom MongoDB layer. (As a side note, I hope one day Amazon will provide a Mongo…
Timothy Johns
  • 1,075
  • 7
  • 17
1
vote
2 answers

Angular App works when all components are in one file, but throws 'nomod' error when components are in separate files

I'm working through this tutorial on creating a single-page MEAN stack todo app. I'm on this step, specifically. The tutorial covers modularization of code, and while I was able to separate my backend code (Express, Mongo, etc.) into modules…
Nathan L.
  • 243
  • 2
  • 10
1
vote
2 answers

File upload with nodejs, express, mean stack

I am new to Mean and nodejs. I have a old project with old dependencies. And I am trying to upload image file to server using angular js. But it does not work. I don't know how to retrieve image file data, name, type, etc at both client and server…
Phyo
  • 692
  • 1
  • 5
  • 14
1
vote
0 answers

Map nested angular $resource to existing object in MEAN-setup

I have a question on how best to structure the following idea: As a (simplified) model I have a Box-object which contains some properties, and has a set of Items. Such an item has some general properties (name is the same for all items, value is…
heisa
  • 834
  • 1
  • 9
  • 17