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
28
votes
9 answers

Angular Error: NodeInjector: NOT_FOUND [ControlContainer]

core.js:5873 ERROR Error: NodeInjector: NOT_FOUND [ControlContainer] Sometimes when I restart the project it runs perfectly. There are only changes in app.component.html :
sanjay
  • 514
  • 2
  • 5
  • 14
28
votes
9 answers

Bower - EPERM, unlink error

I'm encountering the below error stack trace, while I try to install "jQuery" using Bower. Can someone offer some help? C:\study\meanApp>bower install jquery --save bower not-cached git://github.com/jquery/jquery.git#* bower resolve …
David R
  • 14,711
  • 7
  • 54
  • 72
26
votes
1 answer

AngularJS ui-router : Could not resolve___ from state ___ Error

I am following along on this year old ui-router tutorial http://txt.fliglio.com/2013/05/angularjs-state-management-with-ui-router/ and I'm getting the following error: Error: Could not resolve 'settings/quotes' from state 'settings' I am fitting…
user883807
26
votes
3 answers

grunt Cannot find module 'coffee-script'

I used the following commands to install a mean stack and create an app: > sudo npm install -g meanio@latest // Get the mean cmdline > mean init myApp // create your first app > cd myApp && npm install // Install dependencies > grunt // Launch…
Eddie Martinez
  • 13,582
  • 13
  • 81
  • 106
24
votes
4 answers

MongoError: failed to connect to server [localhost:27017] on first connect

I have paid a membership and downloaded this project. After npm install and node app.js, it returns the following error: Does anyone know what's wrong? /Users/Thomas/Desktop/mean-stack-tutorial-01$ node app.js…
user6330767
24
votes
9 answers

Import a data base file.json into robo3T (robomongo)

I have a file named services.json containing a data base that I exported from a windows mongodb, and I want to import that file into robomongo (connected to mongodb installed by npm) on Ubuntu. I'm a beginner and I don't know how to proceed, which…
user2981029
  • 584
  • 1
  • 5
  • 17
23
votes
3 answers

How to Deploy MEAN stack to my hosted server?

I have a great working website built with MEAN and works great locally. i wish to deploy it on my server, but i never deployed a website other than uploading the files to my website ftp. Tutorials anyone?
user349072
  • 493
  • 2
  • 5
  • 12
22
votes
2 answers

MEAN stack: angular routing vs express routing

I've started using angular in my express generated projects and i'm loving it. Recently I implemented angular routing into one of my test projects and I'm wondering what the advantages and disadvantages are to using angular routing over pure…
zero
  • 2,999
  • 9
  • 42
  • 67
21
votes
12 answers

How to serve static images in NestJS

I'm started to learning MEAN stack and when I went to Express I saw that existed a extra layer in the express framework that is called NestJS. It had all what I wanted and it had an Angular-like syntax so was perfect to me. But every new step is a…
Guille
  • 322
  • 1
  • 3
  • 8
21
votes
5 answers

Is JWT necessary over HTTPS communication?

I'm developing a MEAN stack application, and I'm currently setting up an account system. I've seen several tutorials about Authentication, all using JWT. I am wondering if, JWT could be used as way to secure communication transport over non-secured…
Maxime Flament
  • 721
  • 1
  • 7
  • 24
21
votes
3 answers

How to update a array value in Mongoose

I want to update a array value but i am not sure about the proper method to do it ,so for i tried following method but didnt worked for me. My model, The children field in my model childrens: { type: Array, default: '' } My…
MMR
  • 2,869
  • 13
  • 56
  • 110
21
votes
6 answers

How to force client reload after deployment?

I'm using the MEAN stack (mongo, express, angular and node). I'm deploying relatively frequently to production...every couple of days. My concern is that I'm changing the client side code and the API at times and I would rather not have to ensure…
Andrew
  • 880
  • 2
  • 10
  • 19
20
votes
1 answer

How to deploy MEAN.js (Node.js) application to Production environment

MEAN.JS stack proposes the "grunt build" task for preparing application to Production. Unfortunately there is a lack of information about next steps. Actually it's not clear how to deploy the application to production and how to launch it. Question…
Roman Podlinov
  • 23,806
  • 7
  • 41
  • 60
20
votes
2 answers

Express has no method configure error

I'm trying to get started with the MEAN stack. And I'm following this tutorial: link I have made it until the Test Our Server section. Here // modules ================================================= var express = require('express'); var app =…
SuperioREX
  • 257
  • 1
  • 2
  • 9
19
votes
5 answers

Downloaded .pdf files are corrupted when using expressjs

I am working on meanjs application generated using https://github.com/DaftMonk/generator-angular-fullstack. I am trying to generate a .pdf file using phantomjs and download it to the browser. The issue is that the downloaded .pdf file always shows…
Libin TK
  • 1,477
  • 2
  • 25
  • 46