Questions tagged [meanjs]

MEAN.JS is a full-stack JavaScript solution for building web applications using MongoDB, Express, AngularJS, and Node.js.

MEAN.JS is a full-stack JavaScript open-source solution, which provides a solid starting point for MongoDB, Node.js, Express, and AngularJS based applications. The idea is to solve the common issues with connecting those frameworks, build a robust framework to support daily development needs, and help developers use better practices while working with popular JavaScript components.


Documentation :

Related Tags for the used applications:

  • The database itself
  • The interface from express to the database.
  • web application network
  • other tag for the same web application network
  • the web frontend in the version 1.x.x
  • the javascript framework to develop and publish.
877 questions
2
votes
1 answer

How do I use mongoose-seeder, unable to insert data

So I installed this plugin https://www.npmjs.com/package/mongoose-seeder It came with mongoose in sub-directory, so I deleted that directory because I have mongoose already in node_modules and it was giving me errors until deleted. The app runs…
LaserBeak
  • 3,257
  • 10
  • 43
  • 73
2
votes
0 answers

using ssl with meanjs

I have a mean app that's more on the Angular side than the node side. It's working fine on http://localhost:3000 but I am attempting to use the built in tools and generated code for ssl. There is a built in grunt task called 'secure' that runs the…
b0bu
  • 1,062
  • 1
  • 9
  • 24
2
votes
0 answers

There is need to use beforeEach + browser.get while testing with Protractor + AngularJS within MEAN.js?

I just began to use protractor in angularJS. I was facing an error: I App Already Bootstrapped with this Element 'document' while changing ui-route states among my tests, and tried some workaround like browser.ignoreSynchronization = true, but it…
FC.Araujo
  • 303
  • 2
  • 11
2
votes
0 answers

MEAN js 0.4.0 : Socket io - extract the socket associated with user session

I want to extract the socket associated with user session (MEAN js 0.4.0) , i'm not getting a way to achieve that. As an example , inside the create method i want to get an instance of socket associated with the current user session. exports.create…
surya singh
  • 277
  • 6
  • 23
2
votes
0 answers

Angular client-side image upload into JSON document and saved to mongo through node/express

I am using MEAN stack. I created a CRUD module using meanjs.org yeoman generator. I'm extending the functionality to save a document with a few sub documents. My approach is basically to build JSON client-side, add it to the main document, then…
chris c
  • 381
  • 2
  • 4
2
votes
1 answer

Mean js + Mongodb getting empty array

I want to read data from mongo using meanjs(CRUD). I have done all necessary mapping and installations but still when I check json data from browser(http://localhost:3000/customerQuotes) I am getting empty array. This is Model.js file 'use…
Ziva
  • 233
  • 4
  • 18
2
votes
0 answers

MEAN.IO multiple package with their own template

I have created a package in MEAN.IO which has its own template by overriding the system package template MyPackage1.register(function(app, auth, database, system) { app.set('views', __dirname + '/server/views'); }); Now I create the second…
Dau
  • 8,578
  • 4
  • 23
  • 48
2
votes
1 answer

MongoDB Querying Large Collections

I have a MongoDB collection called 'Prices' that I am trying to query for prices between a 'startDate' and 'endDate'. The collection stores prices every 10 seconds, however when querying this collection for graphing purposes only the price every 1-2…
Dave Rich
  • 319
  • 3
  • 15
2
votes
2 answers

I just cloned meanjs project but there is no app folder why?

Hello I just cloned meanjs project and somehow there is no app folder under that project. Why they changed the structure? Am I doing something wrong? Sorry just try to learn Node and one of those tutorials I follow up is using that project Meanjs…
Mehmet Noyan Aydin
  • 289
  • 1
  • 4
  • 15
2
votes
1 answer

How to minify all js and css in MEAN.JS for production environment?

I have just developed a simple MEAN.JS application. MEAN.JS provides a command grunt build that helps me to minify the js and css files located at the following folders css: [ 'public/modules/**/css/*.css' ], js: [ 'public/config.js', …
kitce
  • 23
  • 5
2
votes
1 answer

Filtering all items of specific type (ref document)

I am trying to query all inventory.products that are of inventory.product.type computers. I am not sure how to do this. I have read the documentation and have tried a few but it seems like: db.inventory.products.find({type: { code: {$in:…
jeffci
  • 2,537
  • 6
  • 37
  • 59
2
votes
1 answer

Using Node's Domains in Mean.js

I am trying to get my MEAN application ready for production. The application was built on the Mean.js boilerplate. From my understanding, MEAN.js uses Forever.js to restart the application after an error (although documentation on preparing…
c1moore
  • 1,827
  • 17
  • 27
2
votes
1 answer

MEANJS: Security in SocketIO

Situation I'm using the library SocketIO in my MEAN.JS application. in NodeJS server controller: var socketio = req.app.get('socketio'); socketio.sockets.emit('article.created.'+req.user._id, data); in AngularJS client controller: …
Aral Roca
  • 5,442
  • 8
  • 47
  • 78
2
votes
1 answer

NPM install error MEAN.js sample application on Amazon EC2 Linux?

I connect to my Amazon EC2 instance running Linux AMI using the shell from my Mac OS Computer. I then CD into the development file and git clone the mean.js boilerplate/sample application. Here the GIT repo for mean.js https://github.com/meanjs/mean…
Daniel Kobe
  • 9,376
  • 15
  • 62
  • 109
2
votes
3 answers

Angular ng-change not calling code. Am I using wrong model

I am building an app using MEAN.js generators and a tutorial I found online. Here I have a datepicker in one of my Angular views. For now I would like the ng-change directive to be recognized and do something. At the moment when I make a change to…