Questions tagged [mean.io]

MEAN - Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js.

  • The Browser connects to the desired url which is in the form of http:/localhost:3000 (if you're in a development environment) or the site name. The Connection is handled by Express which uses the consolidate.js library to render the server side application markup (the default templating engine is swig).

  • Page is returned to browser - The page rendered contains the inclusion of the angular.js library(among others). The markup contains an "ng-view" tag which is where the angular app initializes.

279 questions
23
votes
3 answers

How to Deploy MEAN stack to my hosted server?

I have a great working website built with MEAN and works great locally. i wish to deploy it on my server, but i never deployed a website other than uploading the files to my website ftp. Tutorials anyone?
user349072
  • 493
  • 2
  • 5
  • 12
16
votes
1 answer

How to fetch images from node.js server's folder in URL?

Does anybody know how to fetch images from node.js server's folder in URL? In my folder structure I have folder data and inside there is subfolder img with image. I want to access this image with URL, like…
mark
  • 354
  • 2
  • 5
  • 15
15
votes
4 answers

Uncaught ReferenceError: angular is not defined - Mean.IO

I have followed the steps to install mean.io, but when I browse the localhost:3000 I get a blank page and when I open the console I get a list of files pointing to the same error: Uncaught ReferenceError: angular is not defined my issue is…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
11
votes
1 answer

What's the exclamation mark at the beginning and dollar sign at the end of regex?

I"m using Mean.io and saw an regex in a modRewrite function: app.use(modRewrite([ '!^/api/.*|\\_getModules|\\.html|\\.js|\\.css|\\.mp4|\\.swf|\\.jp(e?)g|\\.png|\\.gif|\\.svg|\\.ico|\\.eot|\\.ttf|\\.woff|\\.pdf$ / [L]' ])); I understand that…
lvarayut
  • 13,963
  • 17
  • 63
  • 87
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
10
votes
1 answer

Explain to Mean.io beginner how Mean.io sample package's authentication works

I'm learning mean.io from this tutorial video, which shows the example package (created by mean package mymodule. It is also described under "Packages" on the docs). I would like help in understanding how the given authentication/authorization…
randwa1k
  • 1,502
  • 4
  • 19
  • 30
9
votes
1 answer

How to add sub menu in mean.io?

I've been wandering around the internet to find a way to add submenu's to the mean.io application. SystemPackage.menus.add({ title: 'Log Out', link: 'Log Out', roles: ['authenticated'], menu: 'account' }); I've the following…
Brune
  • 1,060
  • 10
  • 20
7
votes
0 answers

How to integrate grunt bootstrap less in a mean.io stack

I want to build my own compiled css file using the source Less bootstrap files In my project I'm using the mean.io stack. how to integrate less in a mean stack ? I found just a lot of tools out there like…
Whisher
  • 31,320
  • 32
  • 120
  • 201
6
votes
1 answer

Mean.io application is throwing error with forever

I am working on a mean.io application. I am trying to run this application on Ubuntu shell with forever module of node but it is throwing an error "util.js:756 throw new TypeError('The super constructor to `inherits` must not ' + ^: The super…
jahanzaib kk
  • 688
  • 2
  • 10
  • 26
6
votes
2 answers

Scroll always on top in AngularJS

I'm using AngularJS (MEAN.io stack) and i'm getting an annoying glitch related to scroll. When user clicks on a link, the destination page takes the same scroll position than the origin page, instead of staying on top. For fixing this weird…
Rubén Jiménez
  • 1,835
  • 5
  • 21
  • 29
6
votes
1 answer

MEAN JS - where is the main html file (index.html) located

I just started learning MEAN JS and I am trying to find the html file for the main page. However I only see home.client.view.html and header.clinet.view.html in the view folder. From what I know is, usually there is a main html which holds all the…
Gong Yibo
  • 73
  • 1
  • 5
6
votes
0 answers

mean.io vs cleverstack. Which is better

I have to choose a framework that has angular and nodejs. I came across mean.io but the main contributor left it. mean.js is still not fully developed. Cleverstack promises a lot but i am surprised to see very less stars and forks on github and just…
Smith
  • 1,266
  • 13
  • 31
6
votes
2 answers

Routing security flaw in Angular/MEAN.io?

I just installed the MEAN stack (MongoDB, Express.js, AngularJS, Node.js) and opened up the example program (as found on mean.io) and they have a basic app that you can login to and create blog "articles" just for testing and such. Anyway, I removed…
ABlankenship
  • 331
  • 5
  • 12
5
votes
1 answer

How to know if user is loggedin in with passport.js across subdomains

I have created two Mean.io apps in domain.com and in sub.domain.com respectively and everything works as expected in both but the problem is that the one in the subdomain (sub.domain.com) needs to know if the user is logged in the main app…
Leonardo Lanchas
  • 1,616
  • 1
  • 15
  • 37
5
votes
1 answer

How to aggregate JS assets on Mean.io

I'm new to Mean.io and I'm trying to aggregate an external .js file to my package but I'm doing it wrong because it is not being added to aggregated.js. This is what I've done: importer.register(function(app, auth, database) { …
Leonardo Lanchas
  • 1,616
  • 1
  • 15
  • 37
1
2 3
18 19