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
7
votes
2 answers

starting with the MEAN stack, just grunted

So, I'm getting MEAN. Everything is installed. I have some issues, though, and I'm hoping for a bit of guidance on how to read these error logs. I'm coming from Rails, for reference. First things first, following along with http://mean.io/, npm…
Dudo
  • 4,002
  • 8
  • 32
  • 57
7
votes
4 answers

How do I get rid of error "'.' is not recognized as an internal or external command" when running 'npm install' for MEAN stack?

downloaded mean stck zip from mean.io did an npm install after few minutes I got an error. Please see screenshot. what do I do? npm http 200 https://registry.npmjs.org/event-emitter/-/event-e mitter-0.2.2.tgz > mean@1.0.0 postinstall…
user2712585
  • 153
  • 1
  • 2
  • 5
6
votes
2 answers

ng-content vs. ng-template

What is the difference between ng-content and ng-template, and what are some different use-cases for each of them?
geraktOfRivia
  • 325
  • 3
  • 7
  • 19
6
votes
1 answer

localhost appending itself before the backend api in angular

i have put my backend to aws. the backend url works finein postman. but when i put my backend url in angular service, locahost is getting appended to it in front. how can i resolve this. backend url: api.angularapp.site in my service i called like…
Shubham Shaw
  • 841
  • 1
  • 11
  • 24
6
votes
1 answer

How to populate Material select dropdown from remote API service?

I'm trying to populate a material select dropdown with values from a remote API service. I keep getting a null or undefined value at the component. This is for Angular 7 using the MEAN stack and Angular Material. I've tried compareWith function and…
Badger 29
  • 113
  • 3
  • 12
6
votes
1 answer

Node js csrf token protection not working

I have the following in my app.js file server side after bodyParser let dotEnv = require("dotenv"); dotEnv.load(); let express = require("express"); let app = express(); if (process.env.NODE_ENV === 'production') { app =…
jones
  • 1,423
  • 3
  • 35
  • 76
6
votes
8 answers

Can not connect to the databaseMongoParseError: Unescaped at-sign in authority section

I am trying to connect to mongodb server in my nodeJS project. I have a db config file as DB.js module.exports = { DB: 'mongodb+srv://user%40gmail.com:%24ugar@cluster-jfgsm.mongodb.net/test?retryWrites=true' }; username contains @ (%40) mark…
Sujan Gainju
  • 4,273
  • 2
  • 14
  • 34
6
votes
4 answers

Is there any need of learning views and template engines in express when we have already learn angular in the MEAN Stack

I am learning MEAN Stack. I started from learning Angular(from angular.io) now I am learning node.js and express.js My question is, if there is angular for front end in MEAN Stack then why there are views and template engines in express.js at…
Al Fahad
  • 2,378
  • 5
  • 28
  • 37
6
votes
7 answers

how to refresh the page after delete in angular5

I was making a mean-stack shopping app(Angular 5). I have made a manage product component with a list of all the products and a delete button. Delete button works but the product is listed in table till now as it was deleted from database. So, I was…
Coder
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

Get value from Input text field in angular 5

it seems to be an easy question, but nothing what i found worked for me. I have a standard input field in my component.html:
Sithys
  • 3,655
  • 8
  • 32
  • 67
6
votes
2 answers

Create multiple dynamic charts

i'm developing a web application - MEAN stack. i'm trying to use ChartJS doughnut chart but i need it to be completely dynamic - first, the number of charts is dynamic (each chart represent something else) so sometimes it will be 3 and sometime 20.…
Arad Gonen
  • 75
  • 1
  • 1
  • 5
6
votes
0 answers

/sockjs-node/info?t=1515290831331 after deploying MEAN app to Heroku

I'm using the starter provided by mean.io for a simple MEAN application. Under development I don't have issues with sockjs-node requests: http://localhost:3000/sockjs-node/info?t=1515290831331 However, once I deploy on Heroku, the application fails…
areales
  • 121
  • 1
  • 1
  • 6
6
votes
2 answers

webpack compilation sass error: Invalid CSS after "...load the styles": expected 1 selector or at-rule, was "var content = requi"

I'm currently learning webpack and MEAN stack. I need to load my scss file to my project, and I'm using extract-text-webpack-plugin and the css-loader and sass-loader in my webpack.common.js file. It successfully converts the scss file to css and it…
areales
  • 121
  • 1
  • 1
  • 6
6
votes
1 answer

getting "ENOTEMPTY: directory not empty, rmdir ....." error on installing express in angular CLI app.

I am creating my first MEAN app. I have installed angular CLI and also tested it using ng serve -o this command then i build app using ng build which also succeeded. Now when I am trying to install "express" and "body-parser" I am getting following…
Ninja Turtle
  • 1,293
  • 2
  • 24
  • 50
6
votes
0 answers

Displaying error message from backend to the end user in the front end

I have a general design based question regarding displaying error message from then backend to the end user in the front end. Not sure where to look for this. So the error response would be something like this Error Status: 400 (Bad Request) { …
Samip Suwal
  • 1,253
  • 11
  • 17