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

MEAN stack: angular is not defined

I have been searching for answer to my problem for two full days now without results. I know there are a lot of threads about "angular is not defined", but their answers have been of no avail. The starting point is that I have deployed MEAN stack…
bmes
  • 61
  • 2
  • 8
1
vote
3 answers

Simple way to upload image with node.js and express?

I've found few articles explaining the process but most of them are not up do date. How do you handle image upload in node.js?
Artur Stary
  • 724
  • 2
  • 13
  • 30
1
vote
0 answers

Why revolution slider are not working on mean.js?

I installed Mean.js and try to change site\public\modules\core\views\home.client.view.html with revolution slider. I added all required js and css files in core module (with grunt) revolution-slider.css layerslider.css …
TsarS
  • 144
  • 1
  • 14
1
vote
3 answers

Where to insert jQuery plugins into MEAN.js codebase

I developed several static pages with MEAN.js. I was trying to add jQuery Lightbox plugin into my project. jQuery Lightbox plugin has jQuery.lightbox.js and jQuery.lightbox.css. Could you tell me on where I should put these files? I tried to put…
ilikedev
  • 80
  • 5
1
vote
3 answers

Uploading a base64 encoded image to Node.js server not working

I'm using MEAN.io and i'm trying to upload a base64 encoded image. Client side, AngularJS: // Image we're going to send it out var base64Image = files[i]; var file = { image: base64Image, type:…
Rubén Jiménez
  • 1,835
  • 5
  • 21
  • 29
1
vote
1 answer

Consume REST API with AngularJS

I'm trying to pull an object by its _id from the mongodb database and place it in the $scope for later use. However when I try to do so, I get every object in the database, instead of the one I requested. I'm new to the mean-stack and do not…
David
  • 965
  • 3
  • 12
  • 24
1
vote
1 answer

$resource:badcfg in save method, which seems to return an object

Here is my resource var gamesRes = $resource('/collections/test13/:id', {gameID: '@id'} ); and what i'm trying to do $scope.res = gamesRes.save({}, $scope.newGame); If i'm setting isArray: true to save method it works fine. Strange thing is…
arkhy
  • 447
  • 6
  • 18
1
vote
1 answer

User Registration and Authentication/Authorization with MEAN Stack

I need to register users with my AngularJS app. I would like hashing with salt to take place when storing the password into MongoDB. Then I would like the same user to authenticate and authorize for some of the actions he/she could take. I come from…
skip
  • 12,193
  • 32
  • 113
  • 153
1
vote
0 answers

Angular.js and Node.js: Seeing an OPTIONS and one POST Request in Firebug but two POST Requests in Node.js

To make a POST request with a Body full of JSON Data as Payload I use: $http.post('http://westeros:9000/model/create/', theBody).success(function(retData, status, headers, config){....}); I am seeing this in Firebug: In Node.JS I am seeing two POST…
Stephan Kristyn
  • 15,015
  • 14
  • 88
  • 147
1
vote
2 answers

How to use socket.io with mean.io

I am using mean.io v 0.4.0 and trying to setup socket.io with it. I want to socket.io to listen to the nodejs server. There is a post talking about it's setup here but it doesn't fully solve my problem. socket.io needs nodejs server object to listen…
Mady
  • 5,016
  • 7
  • 35
  • 46
1
vote
1 answer

Adding Angular-Google-Maps to Mean.js

I am having an issue trying to add a module (angular-google-maps) to Mean.js I ran: bower install angular-google-maps --save Then added 'google-maps' to public/config.js in the applicationModuleVendorDependencies array: var…
reubenb87
  • 303
  • 4
  • 11
1
vote
1 answer

How to direct a user to a new route after login?

A user logs in on the / route. How do I direct them away from the / view of my app /packages/system/public/views/index.html to another view /app? /packages/system/public/views/app.html I want this view /app to be secure, so only logged in users…
Michael Cole
  • 15,473
  • 7
  • 79
  • 96
1
vote
1 answer

Angular creating a new JSON object nested inside of an existing object

I have a functioning code which creates a new JSON object based on my schema but I'd like to target the objects inside of the overall object. I'm not sure if this is possible... I'm stuck in between creating a new object but also updating an…
byrdr
  • 5,197
  • 12
  • 48
  • 78
1
vote
1 answer

Gulp with express inject custom path

I'm using gulp on a mean stack. I've got my express static set like this: app.use(express.static(__dirname + '/client')); I'm using gulp-inject to inject my css and js to my html. However, since gulp is getting them…
Difusio
  • 789
  • 1
  • 8
  • 22
1
vote
1 answer

adding ngsanitize to mean.io

I am new to the mean stack and am trying to add ngSanitize. I installed on the command line and see the library inside /bower_components/ but the angular-sanitize.js script isn't loading on the app. Am I missing a step for this? I tried adding…
user1572796
  • 1,057
  • 2
  • 21
  • 46