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

GET error MEAN App

I've been learning how to use the MEAN stack in order to build web apps and so far it's been a lot of fun. Instead of using yeoman generators or npm app to generate my code for me, I've been building my whole app from the ground up. This way I know…
Michaelslec
  • 905
  • 1
  • 9
  • 20
14
votes
1 answer

IDE for MEAN stack [ MongoDb,Express,AngularJs,NodeJs ]

For designing the MEAN stack application, I am creating separate modules( angularjs,expressjs,nodejs,mongodb) and i am linking them manually. Can you please suggest me an IDE available for directly designing MEAN stack application.
Balayesu Chilakalapudi
  • 1,386
  • 3
  • 19
  • 43
13
votes
3 answers

Expected "payload" to be a plain object : MEAN

This is my code from routes file(users.js) User.findOne({linkedin_id: req.body.linkedin_id}, function(err, linkedinUser) { if(err) { console.log('err in finding linkedin user '+err); } // if user exits else if(linkedinUser) { …
raj_tx
  • 229
  • 1
  • 5
  • 18
13
votes
1 answer

Download file from http post request - Angular 6

UPDATED with res.send(data) instead of res.json(data) Using Angular 6 and NodeJS I am doing a web application. I am trying to download a file from a http post request. I send a request to the server like this. From my component I call a function in…
PierBJX
  • 2,093
  • 5
  • 19
  • 50
13
votes
3 answers

PayloadTooLargeError on loopback 3

I need to save base64 image in loopback model. When i'm saving base64 image i get an error saying . I have tried updating in middleware same added below, i have done it before in loopback2, for this project i upgraded to loopback3 and got stuck in…
Taj Ahmed
  • 895
  • 11
  • 19
13
votes
7 answers

MEAN stack file upload

I am developing a MEAN stack web application and I want to upload file using ng2-file-upload. This is my Angular 2 code. classroom.component.html
chamathabeysinghe
  • 858
  • 2
  • 13
  • 34
13
votes
1 answer

Adding child document to existing mongodb document

Essentially I am just trying to add a new sub-document to my existing mongodb document that has the following schema /models/server/destination.js // this is the "destination" model for mongoose var mongoose = require('mongoose') var Adventure =…
pwborodich
  • 382
  • 6
  • 22
13
votes
3 answers

MEANJS : 413 (Request Entity Too Large)

I am using a MEANJS stack, I upload an image using ng-flow and save the imgsrc as base64 url. data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARkAAACzCAYAAAC94GgrA.... Here is my mongoose schema: var ServiceSchema = new mongoose.Schema({ name :…
Fabii
  • 3,820
  • 14
  • 51
  • 92
13
votes
2 answers

Mongoose model Schema with reference array: CastError: Cast to ObjectId failed for value "[object Object]"

I build a blog website with express.js and mongoosejs. A article may have one or more category. When I create a new article, I get error: { [CastError: Cast to ObjectId failed for value "[object Object]" at path "categories"] message: 'Cast to…
Race
  • 384
  • 1
  • 11
  • 27
12
votes
3 answers

how to run angular 4 app and nodejs api on same port 4200 for both production and development?

I have created angular 4 app and I can run it using ng serve --open and it runs on localhost:4200 , what I want is I have also created api using nodejs in same angular project now I want to run that API at localhost:4200/api so I have tried…
kumbhani bhavesh
  • 2,189
  • 1
  • 15
  • 26
12
votes
3 answers

How does Angular and Express routing work together in a mean.js app?

I'm struggling about Angular and Express Routing (by the way, i'm somehow new to Express), i've been handling routes with Angular — with ui-router — but now that i'm starting to build a MEAN.js Application i notice that i can handle server-side…
Jonathan Solorzano
  • 6,812
  • 20
  • 70
  • 131
11
votes
1 answer

How to get the name of the Parent component in Child component in angular 2?

Suppose I have three components: C1, C2, and C3. I want to make C2 the child of both C1 and C3. And according to the fact which component is the parent of C2 want to show HTML text - "C1 is my parent" or "c3 is my parent". This is the superficial…
Ashutosh Sharma
  • 118
  • 2
  • 18
11
votes
1 answer

Authentication in angular 2 universal, nodejs

I downloaded universal-starter for nodejs and started migrating my website from old angular-rc4. But when I have to implement authentication (in my case it's JWT which is stored in localStorage), the server dont have localStorage and cookie so that…
user3027246
  • 233
  • 6
  • 13
11
votes
3 answers

Application chat character limits?

I'm building a MEAN web application which I hope to deploy on the open internet sometime soon. Part of this application includes a chat feature supported by the awesome Primus abstraction layer backed by WebSockets. As I was coding up the chat…
NanoWizard
  • 2,104
  • 1
  • 21
  • 34
11
votes
1 answer

Passport JWT & Authorize vs Authenticate

Passport seems like a great option for simple authentication, unobtrusive and not hard to setup. I'm building a MEAN stack that authenticates using JWT so I looked to Passport JWT. However there's a few things I'm confused about. 1) Am I correct in…
barndog
  • 6,975
  • 8
  • 53
  • 105