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
416
votes
27 answers

Request header field Access-Control-Allow-Headers is not allowed by itself in preflight response

I have come across CORS issues multiple times and can usually fix it but I want to really understand by seeing this from a MEAN stack paradigm. Before I simply added middleware in my express server to catch these things, but it looks like there is…
mibbit
  • 4,997
  • 3
  • 26
  • 34
76
votes
21 answers

`node-pre-gyp install --fallback-to-build` failed during MeanJS installation on OSX

I just bought myself a mac book after using Windows for a long time. I was trying to work on a MeanJS project that I had been working on. Doing npm install on the project throws error Failed to execute '/usr/local/bin/node…
aayush shrestha
  • 1,858
  • 2
  • 17
  • 33
34
votes
3 answers

How to read csv file in node js

I am trying to read a csv file using node js. Her is my code fs.readFile(config.csvUploadPath, function read(err, data) { if (err) { throw err; } console.log(data + 'my data') }); CONSOLE: ID D11 D33 D55 Here I want to get the…
MMR
  • 2,869
  • 13
  • 56
  • 110
33
votes
3 answers

Mongodb find created results by date today

I have this query to get results on month. But I wanted to get the results of today. var start = new Date(2010, 11, 1); var end = new Date(2010, 11, 30); db.posts.find({created_on: {$gte: start, $lt: end}}); What is the best way to do this?
Rex Adrivan
  • 993
  • 1
  • 10
  • 23
16
votes
8 answers

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005) with meanjs and vagrant

I am trying to run mean.js project based on vagrant , but I get the following error with the vagrant up command on ubuntu 14.04 LTS 64 bit. There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling…
Santosh Shinde
  • 6,045
  • 7
  • 44
  • 68
14
votes
3 answers

Use Multer in Express Route? (Using MEANJS)

I'm using Multer to upload images in Express 4. However, the examples all show Multer being defined in the express file as Middleware. I'd like to actually define some of the Multer behaviors in my app routing itself. Is this possible? The end…
aikorei
  • 570
  • 1
  • 7
  • 23
13
votes
3 answers

Blank page on Heroku - mean.js angular app

I'm trying to deploy my mean.js app to heroku. Somehow the app on heroku is loading a blank page. It seems like the angular app is not being loaded properly. Possibly a problem with bower dependencies? Please take a look at the blank heroku app. The…
eshaham
  • 869
  • 5
  • 12
12
votes
4 answers

Error sending email using nodemailer via Office365 smtp (MEANjs scaffold)

I'm trying to use Office365 SMTP to send email using Nodemailer (in a MEANjs scaffold), but I get the following error: [Error: 140735277183760:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown…
Prasad Silva
  • 1,020
  • 2
  • 11
  • 28
10
votes
2 answers

TypeError: The "digest" argument is required and must not be undefined

I am getting subject error while registering a simple Mean Application through http://localhost:3000/auth/register, that I have simply created using mean init command. pbkdf2 or crypto is generating the error and I have no idea where to look for…
Umair Malhi
  • 565
  • 1
  • 5
  • 16
8
votes
3 answers

Mongoose & float values

My lat & lng numbers are being converted to strings. My section integers are still the correct data type of Number. How do I set up model so that I can get my lat & lng back out as Float rather than String? I'm storing latLng data in my db. Right…
Justin Young
  • 2,393
  • 3
  • 36
  • 62
8
votes
4 answers

mean.io - Error: 'Request entity too large'. How to increase bodyParser limit outside meanio module?

I am receiving following error with mean.io application. Error: request entity too large To overcome this issue, I have increased the bodyParser limit with in meanio module at following…
8
votes
4 answers

Angular JS generating PDF - any creator - maker modules?

As title says, is there any PDF creator / generator for Angular? I have seen https://github.com/MrRio/jsPDF, but can't find any for Angular. I want to make an html page to a pdf file for download.
Stweet
  • 683
  • 3
  • 11
  • 26
7
votes
1 answer

ReferenceError: Can't find variable: ApplicationConfiguration

I am getting ReferenceError: Can't find variable: ApplicationConfiguration at application.js on running 'npm test' or 'karma start' in CLI. My karma.config.js for reference is : module.exports = function(config) { config.set({ frameworks:…
Ziva
  • 233
  • 4
  • 18
7
votes
1 answer

How do I submit and process request params with an Oauth request?

I am using the MeanJS stack to develop a web application. The issue I'm having, is that my regular signup process has some unique parameters that are not common to an Oauth user profile. So, when I have the user go to signup with facebook, I move…
Olivercodes
  • 1,048
  • 5
  • 17
7
votes
2 answers

mongoose how to set date format in model

I am new for mongoose. I am using "Date" as type for my "holidayDate" column. I want to store only date not time in my "holidayDate" column so is there any way to define date format in domain model so when my domain is save my "holidayDate" column…
Piyush Chaudhari
  • 962
  • 3
  • 19
  • 41
1
2 3
58 59