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
5
votes
1 answer

Why use Gulp in Angular

I'm applying for a job and I've been asked to develop a small web app using MEAN Stack with Angular 2+. Everything ok for the exception that I've been asked to use Gulp/Grunt also. I did some digging and I found out that they are task runners and…
claudiomatiasrg
  • 578
  • 4
  • 11
  • 31
5
votes
4 answers

Push element to array in mongoose

I am trying to push an element to an array in mongoose. I am doing it with update and $push. But it is not updating it in the database. This is my code. routes.js: var Chooser = require('../chooser'); var appRouter = function(app) { …
isanma
  • 165
  • 1
  • 2
  • 12
5
votes
1 answer

Sequelize js transaction on destory and bulkCreate not rolling back

I am trying to delete all report_details before bulkCreate/insert the new ones. The problem is when there is an error in bulkCreate it does not rollback. It should bring the destroyed report_details back but it is not working. The way i am testing…
5
votes
5 answers

Web security. Am I protecting my REST api properly? (node.js express)

I have a MEAN stack app with a REST like api. I have two user types: user and admin. To sign the user in and keep the session i use jsonwebtoken jwt like this (simplified): const jwt = require("jsonwebtoken"); //example user, normally compare pass,…
Rasmus Puls
  • 3,009
  • 7
  • 21
  • 58
5
votes
2 answers

Why is my http.put Request not working? MEAN-Stack

I'm building an app with a API and so far all the http request (get, post) are working fine. Now i added a put Request to my Service and for some reason it's not working. Here is where i call the Service Function: export class ChatStartComponent…
FavoriteFave
  • 53
  • 1
  • 1
  • 6
5
votes
1 answer

Uncaught (in promise): The message port closed before a response was received

So before the question I wanna point out that the only thing I could find on this issue was on this stackoverflow question. This issue suggest that this was an issue with wappalyzer, and it was fixed in version 4.0.1. however I am using wappalyzer…
Jonas Praem
  • 2,296
  • 5
  • 32
  • 53
5
votes
3 answers

NodeJS :: TypeError: Cannot read property 'first_name' of undefined

I was learning the MEAN stack from a tutorial. When I tried on my localhost, I got an error. TypeError: Cannot read property 'first_name' of undefined at router.post (/var/www/html/mean/contactlist/routes/route.js:17:28) I found some similar…
Renjith V R
  • 2,981
  • 2
  • 22
  • 32
5
votes
3 answers

How to dynamically set checked state in radio button in Angular js

I am working with MEAN Stack and I have a form which is included radio Button which is submitted successfully Now what I want is to edit the record. I want is that the record radio button should be checked according to database value. How to do…
Shahzad Intersoft
  • 762
  • 2
  • 14
  • 35
5
votes
1 answer

mongodb mongoose connection open callback doesnt get called

I have a MEAN project and this is a snippet from my server.js var db = require('./config/db'); // url : 'mongodb://localhost/cdnserver' // results are same for 127.0.0.1 or the machines…
55597
  • 2,033
  • 1
  • 21
  • 40
5
votes
2 answers

when to use $q.defer() in Angularjs

I am new to Angularjs and I m following this tutorial :http://mherman.org/blog/2015/07/02/handling-user-authentication-with-the-mean-stack/#.WE70iubhCM8 . However i dont understand when to use $q.defer(). For example in the folllowing Angularjs…
juliana Morales
  • 177
  • 3
  • 3
  • 10
5
votes
1 answer

Upload to S3 from client or server?

Should I upload my files to S3 directly from the client or send them back to my server and upload them from there? What are the pros and cons of each method? Which is more commonly done? I'm using the MEAN stack, if that is relevant.
lsimmons
  • 677
  • 1
  • 8
  • 22
5
votes
4 answers

Error: callback function required

I am trying to render an object into html using node,express and mongodb. when I tried the below code var express=require('express'), app=express(), engines = require('consolidate'), nunjucks = require('nunjucks'); app.set('view engine',…
maverick
  • 73
  • 1
  • 8
5
votes
6 answers

message: path is required

Hi I'm trying to create a new subdocument via mongoose, but i'm getting the following messages when I execute the POST method in Postman: { "message": "Location validation failed", "name": "ValidationError", "errors": { …
AtomicNation
  • 181
  • 1
  • 2
  • 6
5
votes
0 answers

How to password protected of generate pdf programmatically in node js

I am working on mean stack project. In this i have a requirement to generate pdf dynamically and send it on the user email id. But pdf should be password protected when user enter the password he can see the content of pdf. I am using html-pdf node…
5
votes
2 answers

Consuming REST API with Java

I have a management web application located on a remote server. This app was written using a MEAN stack and I have a list of all the RESTful routes necessary to connect to the web app. I am writing a Java client application that needs to send and…