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
19
votes
4 answers

MEAN Stack File uploads

I've recently started programming with the MEAN Stack, and I'm currently implementing some sort of social network. Been using the MEAN.io framework to do so. My main problem right now is getting the file upload to work, because what I want to do is…
Cacos
  • 195
  • 1
  • 1
  • 7
19
votes
4 answers

How to push notifications with angular.js?

I have been building a simple application to learn angular.js. So far I hooked up all the pieces in the MEAN stack and I am able to save and retrieve data from Mongo. The app is essentially a todo list. The user can create a project and inside the…
18
votes
7 answers

Uncaught SyntaxError: Unexpected token U in JSON at position 0 at JSON.parse () at Response.Body.json

I am working on an angular2 project. I am stuck with these errors. The error occured when I tried to send the JSON objects to the backend. It may be due the parsing of JSON objects. I am new to angualar, so please do help Signup.service.ts import…
Karthik
  • 1,332
  • 1
  • 12
  • 21
18
votes
1 answer

How does Mongoose's save callback work?

For the MEAN stack, I'm learning about Mongoose's save() function, which takes a callback. Its API states: Model#save([options], [fn]) Saves this document. Parameters: [options] options set `options.safe` to override [schema's safe…
Melissa
  • 1,236
  • 5
  • 12
  • 29
17
votes
4 answers

How to do Authentication with Node.js and MEAN stack?

I am currently working on a text based game with a small team of developers. The game requires login and we are using the MEAN (MongoDB, Express, Angular, Node) Stack for the application codebase, however i am stuck on authentication, as a rails…
user2693845
16
votes
9 answers

Not able to import "@angular/material" module

I'm totally new to mean stack and I'm facing some problems with Angular's material module. I'm trying to import the "@angular/material" module in my code but I'm getting an error whenever I'm importing it. The error is as follows: ERROR in…
AnonSar
  • 556
  • 1
  • 7
  • 24
16
votes
1 answer

How to fetch images from node.js server's folder in URL?

Does anybody know how to fetch images from node.js server's folder in URL? In my folder structure I have folder data and inside there is subfolder img with image. I want to access this image with URL, like…
mark
  • 354
  • 2
  • 5
  • 15
16
votes
1 answer

How to password protect nodejs application using alternative to htaccess

I have a site hosted in aws with www.domain.com with 2 sub domains test.domain.com and stage.domain.com. I am using MEAN for development, now what i want is to password protected my sub domains test.domain.com and stage.domain.com but in a similar…
dipak1296
  • 349
  • 2
  • 3
  • 16
15
votes
4 answers

Is it possible to pass param from state to state with angularJs?

I wish to pass a param from one store-state to the display product info in products-state: My app - storeApp .config(['$stateProvider', function($stateProvider) { $stateProvider .state('store', { url: '/store', templateUrl:…
Jadeye
  • 3,551
  • 4
  • 47
  • 63
15
votes
4 answers

Access to Mongodb in Kubernetes

I created a Mongodb service according to the Kubernetes tutorial. Now my question is how do I gain access to the database itself, with a client like Robomongo or similar clients? Just for making backups or exploring what data have been entered. The…
g4challenge
  • 421
  • 1
  • 4
  • 11
15
votes
1 answer

Express session MongoDB store: connect-mongo vs connect-mongodb-session

By now (10.7.2016) express-session's github-page suggests two mongodb session stores: connect-mongo | A MongoDB-based session store - Github (775 Stars) connect-mongodb-session | Lightweight MongoDB-based session store built and maintained by…
Rentrop
  • 20,979
  • 10
  • 72
  • 100
15
votes
1 answer

"Your npm version is outdated." but it's not. While install yo

On Windows 7 64 bit. Installed Node.js via wizard which gave me npm. I run npm install -g yo and get the following Your npm version is outdated. Complete output: C:\Users\dlite922>npm install -g yo | > spawn-sync@1.0.11 postinstall…
dlite922
  • 1,924
  • 3
  • 24
  • 60
15
votes
4 answers

Uncaught ReferenceError: angular is not defined - Mean.IO

I have followed the steps to install mean.io, but when I browse the localhost:3000 I get a blank page and when I open the console I get a list of files pointing to the same error: Uncaught ReferenceError: angular is not defined my issue is…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
14
votes
2 answers

what is difference between strapi content type and component?

I'm new user of strapi. While reading docs I got confused between content type and component.What is the difference between these two?
Tushar Manohar
  • 153
  • 1
  • 5
14
votes
2 answers

How do I hash a string using JavaScript with sha512 algorithm

I've tried using sha512 from NPM but it keeps hashing the wrong thing i.e I am supposed to get a string but it keeps returning object. So in PHP I know I can perform the task $hash = hash("sha512","my string for hashing"); How do I perform this task…
Toheeb
  • 1,217
  • 1
  • 14
  • 26