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

Does node.js server need internet connection to run?

I disable the internet connection and run the node server npm start, then it throws the error: And now enabling internet connection and running the server works fine: So, I want to confirm if this really needs to be connected to the internet while…
Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
9
votes
2 answers

mean.io push to git repo

I created a project on mean stack (mean.io) using mean init This created a git repo which I want to push into my own private git repo on Bitbucket. I did: git remote add origin git@bitbucket.org:my_login/reponame.git git push -u origin --all I'm…
Alexey
  • 732
  • 7
  • 18
9
votes
3 answers

Multer module won't start

I'm writing a web app using the MEAN stack. I installed multer via npm like so: sudo npm install -g multer and I require it in one of my routes files: var multer = require("multer"); I'm using nodemon and it throws the following error every time…
Jason
  • 372
  • 1
  • 4
  • 14
9
votes
3 answers

Updating 2 mongoose schemas in an api call

Currently I'm trying to update Two different User Schema's in an api call. The first schema is logged in user schema, we give it a name = Tom The second schema is other users who signup for the app, we give it a name = John The schema…
sinusGob
  • 4,053
  • 12
  • 46
  • 82
9
votes
2 answers

How do you upload an image file to mongoose database using mean js

I am new to the mean stack. I want to know how to upload an image file to the database(mongoose) through angularjs. If possible, please provide me with some code. I have searched the internet but I haven't found any suitable code.
user3775998
  • 1,393
  • 3
  • 13
  • 22
9
votes
1 answer

How to manage assets (css) in MEAN.js & Node.js

MEAN.js uses config files for css files management; it also autoload all css files for module. Question #1: How to exclude particular files from the list? Question #2: What is a right way to include particular CSS file only for some pages…
Roman Podlinov
  • 23,806
  • 7
  • 41
  • 60
9
votes
4 answers

What's difference between static and non-static resources?

I am primarily a front-end developer/designer, however recently, I've been exploring end to end solutions. Yesterday I finished a TODO application using the mean stack and would like to start exploring deployment options to my VPS. That being…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
8
votes
1 answer

Cannot extend an interface 'http.IncomingMessage'. Did you mean 'implements'?

I've been battling to run serve my angular project, every time I come across with some errors, I tried to find answer using google and now reached a point, where I didn't found any helpful answer. I downloaded a MEAN stack application and tried to…
Lint
  • 895
  • 3
  • 13
  • 32
8
votes
1 answer

What's the best approach to keep node running in the background - nohup vs. forever vs. pm2?

I've read many posts that talk about keeping node running in the background using nohup, forever and pm2. But I'm still uncertain which is the optimal choice and would appreciate some guidance. Background - running a MEAN stack app on an Apache…
coder101
  • 383
  • 4
  • 21
8
votes
4 answers

Angularjs Post request to server

How would i gather that info im sending from the client? in this case, the id? How can I get the id? I do use client sided request: return $http.post('/api/kill', {id:4}, { headers: {} }) and when i check server sided…
maria
  • 207
  • 5
  • 22
  • 56
8
votes
1 answer

Heroku Build Failed: "node_modules checked into source control"

I am deploying a site built upon MEAN stack on Heroku. While troubleshooting an issue I removed node_modules/ from my .gitignore file and ever since my app has been getting "Build failed" errors. I readded node_modules/ to the file, but it seems the…
user5655890
8
votes
5 answers

Call ExpressJS as Rest API for HTML page

I am creating web page with a button to load data from the server using Rest API build through ExpressJS, NodeJs. var express=require('express'); var mysql=require('mysql'); var app=express(); var server=app.listen(3000,function(){ …
ghost...
  • 975
  • 3
  • 16
  • 33
8
votes
1 answer

Webapp with MEAN stack and Java

I've been a Java/J2EE developer for a few years now, and unfortunately lately I haven't been learning that much because of the context of my daily job and my company. That's why I've decided to tackle my own personal project, which would have the…
nicolasdaudin
  • 302
  • 1
  • 4
  • 15
8
votes
2 answers

MEAN stack - reliance on templating (Angular vs Templating Engines)?

This may come from a lack of experience on the various sections of the MEAN stack, but from the various boilerplates I've seen (mean.io, hackathon-starter, etc.) in the app.js code, there is always a call to using jade templating engine. I know that…
Robert
  • 1,745
  • 5
  • 34
  • 61
8
votes
2 answers

error when starting the server with grunt or node server

I am trying to use the mean stack as described here : http://mean.io/ after install, when making "grunt", there is an error : debugger listening on port 5858 4 Jan 01:47:40 - [nodemon] reading ignore list Express app started on port…
François Romain
  • 13,617
  • 17
  • 89
  • 123