Giter Site home page Giter Site logo

linnovate / mean Goto Github PK

View Code? Open in Web Editor NEW
12.1K 613.0 3.5K 10.06 MB

The MEAN stack uses Mongo, Express, Angular(6) and Node for simple and scalable fullstack js applications

Home Page: http://mean.io

JavaScript 25.47% HTML 17.13% TypeScript 51.27% Dockerfile 0.47% Shell 0.13% SCSS 5.53%
stack angular javascript mongodb express node

mean's Introduction

Welcome to the mean stack

The mean stack is intended to provide a simple and fun starting point for cloud native fullstack javascript applications.
MEAN is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the top (code running in the browser) to the bottom (database). The stack is made up of:

  • MongoDB : Document database – used by your back-end application to store its data as JSON (JavaScript Object Notation) documents
  • Express (sometimes referred to as Express.js): Back-end web application framework running on top of Node.js
  • Angular (formerly Angular.js): Front-end web app framework; runs your JavaScript code in the user's browser, allowing your application UI to be dynamic
  • Node.js : JavaScript runtime environment – lets you implement your application back-end in JavaScript

Pre-requisites

Installation

git clone https://github.com/linnovate/mean
cd mean
cp .env.example .env
yarn
yarn start (for development)

Docker based

⚠️ Make sure your Docker version is 19.03.0+.

git clone https://github.com/linnovate/mean
cd mean
cp .env.example .env
docker-compose up -d

Credits

  • The MEAN name was coined by Valeri Karpov.
  • Initial concept and development was done by Amos Haviv and sponsered by Linnovate.
  • Inspired by the great work of Madhusudhan Srinivasa.

mean's People

Contributors

adskjohn avatar adsklowenthal avatar almogbaku avatar amoshaviv avatar andrija-hers avatar arturovt avatar brownman avatar chanakade avatar chickenham avatar dvorad avatar ellman avatar emps avatar enkodellc avatar fyockm avatar j9t avatar jackhsu978 avatar jwebbdev avatar liorkesos avatar lirantal avatar pratik60 avatar rivkabenshalom avatar sarareisner avatar spacemonkey avatar stonelasley avatar tetyanochka avatar timelf123 avatar udisun avatar vikramtiwari avatar zohar avatar zwhitchcox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mean's Issues

How to add a new page

[EDIT] - this is partly wrong, see my comment below

Hi,

I successfully added a page to this project. Since it wasn't as simple as I hoped, I try to document what I did. The page I add in this walkthrough is called 'video'.

  1. Edit config/routes.js and add:
var video = require('../app/controllers/video');
app.get('/video', video.render);
  1. Add app/controllers/video.js with:
var mongoose = require('mongoose'),
    async = require('async'),
    _ = require('underscore');

exports.render = function(req, res) {
    res.render('video');
};
  1. Add app/views/video.jade with:
extends layouts/default
block content
  h1 video page
  p this is a test
  1. On the client side, you edit /public/js/config.js and add:
when('/video', {
    templateUrl: 'views/video.html'
  1. Furthermore, edit public/js/controllers/header.js and in $scope.menu add:
{
    "title": "Video",
    "link": "video"
}

This should be it.

Best,
Dirk

No dependancies work (from Bower)

I followed the instructions in the readme, but the structure created is trying to reference the following files (all are not found):

 http://localhost:5000/lib/bootstrap/docs/assets/css/bootstrap.css
 http://localhost:5000/lib/bootstrap/docs/assets/css/bootstrap-responsive.css
 http://localhost:5000/lib/jquery/jquery.min.js 404
 http://localhost:5000/lib/angular/angular.min.js
 http://localhost:5000/lib/angular-bootstrap/ui-bootstrap-tpls.min.js
 http://localhost:5000/lib/angular-cookies/angular-cookies.min.js
 http://localhost:5000/lib/angular-resource/angular-resource.min.js
 http://localhost:5000/lib/angular-ui-utils/modules/route/route.js

No lib folder is present anywhere in the cloned build. Am I supposed to be moving these files from the bower_components/ folder into public/lib/? Am I totally missing something here?

[Enhancement] Integrate login / signup with angular app

Currently the signup, login pages are jade templates served up by express. In my opinion, it would be ideal to instead convert them to RESTful api endpoints, and handle the logging in / templating thorough angular.

This would keep the experience more cohesive to the end user. It would also eliminate the need for jade templating (just send every non API request to index.html). It would also open the possibility of exposing a whole slew of auth related endpoints, ie: api/login api/signup api/signout api/reset_password etc.

Thoughts?

Expressjs API?

There are two command line which I do not understand:

  1. var article = req.article;
  2. req.article = article;

what does it mean?. Look up in http://expressjs.com/api.html, I do not see this kind of req.

Thank so much!

FYI Facebook API Key exposed

Your config file contains your Facebook API Key. Might want to store that in a config file that you add to .gitignore

Error: shasum check failed

I've been getting this error consistently on multiple machines on different networks when running npm install from a fresh clone of mean. When it happens seems to be rather unpredictable but I assume that's because of some async callback that is throwing the error. Is there some way I can get a more descriptive error message?

4009 error Error: shasum check failed for /home/dev/tmp/npm-32719-SuK3oQBr/1378762041409-0.2018241216428578/tmp.tgz
4009 error Expected: 0c015ec5bc5ad65c11c4b5152f221f24b7af5522
4009 error Actual:   5d5de65cc23a0c18ada7f3aa30e9325390a78c5e
4009 error     at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
4009 error     at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:85:7)
4009 error     at ReadStream.EventEmitter.emit (events.js:125:20)
4009 error     at _stream_readable.js:896:16
4009 error     at process._tickCallback (node.js:316:11)
4010 error If you need help, you may report this log at:
4010 error     <http://github.com/isaacs/npm/issues>
4010 error or email it to:
4010 error     <[email protected]>
4011 error System Linux 3.8.0-30-generic
4012 error command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
4013 error cwd /home/dev/projects/mean
4014 error node -v v0.11.8-pre
4015 error npm -v 1.3.10
4016 verbose exit [ 1, true ]

Resources 404 on Gets

I think I got everything installed correctly but got 404's for all the resources(bootstrap, jquery, etc) when visiting the page: localhost:3000.

I ended up moving the resources to a folder named static, and remove lib/ from the app/views/includes/{foot.jade,head.jade,} files.
Then I had to link the resources in the server.js file using:
app.use(express.static(__dirname + '/static'));

Was there a different way I was supposed to be able to serve those resouces?

Remember me

A "remember me" option by logging in would be a simple but expected function.

Heroku deployment fails

I'm trying to deploy the default MEAN project to heroku and I'm getting the following error:

....
npm http 200 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/lru-cache/-/lru-cache-2.3.1.tgz
npm http 200 https://registry.npmjs.org/sigmund/-/sigmund-1.0.0.tgz
npm http 200 https://registry.npmjs.org/lru-cache/-/lru-cache-2.3.1.tgz

   > [email protected] install /tmp/build_1x3keyczpiugp/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson
   > (node-gyp rebuild 2> builderror.log) || (exit 0)


   > [email protected] install /tmp/build_1x3keyczpiugp/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
   > (node-gyp rebuild 2> builderror.log) || (exit 0)


   > [email protected] install /tmp/build_1x3keyczpiugp/node_modules/mongoose/node_modules/mongodb/node_modules/bson
   > (node-gyp rebuild 2> builderror.log) || (exit 0)

   make: Entering directory `/tmp/build_1x3keyczpiugp/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/build'
     CXX(target) Release/obj.target/bson/ext/bson.o
   make: Entering directory `/tmp/build_1x3keyczpiugp/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
     CXX(target) Release/obj.target/bson/ext/bson.o
   make: Entering directory `/tmp/build_1x3keyczpiugp/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
     SOLINK_MODULE(target) Release/obj.target/kerberos.node
     SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
     COPY Release/kerberos.node
   make: Leaving directory `/tmp/build_1x3keyczpiugp/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
     SOLINK_MODULE(target) Release/obj.target/bson.node
     SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
     COPY Release/bson.node
   make: Leaving directory `/tmp/build_1x3keyczpiugp/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/build'
     SOLINK_MODULE(target) Release/obj.target/bson.node
     SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
     COPY Release/bson.node
   make: Leaving directory `/tmp/build_1x3keyczpiugp/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'

   > [email protected] postinstall /tmp/build_1x3keyczpiugp
   > ./node_modules/bower/bin/bower install

   sh: ./node_modules/bower/bin/bower: not found
   npm ERR! weird error 127
   npm ERR! not ok code 0

! Failed to install --production dependencies with npm

! Push rejected, failed to compile Node.js app

To [email protected]:cryptic-bastion-4086.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:cryptic-bastion-4086.git'

going to localhost:3000/articles sends user information

screen shot 2013-08-03 at 2 31 49 pm

This was just something I noticed. I am sure we are suppose to handle our own authentication logic, but I thought I would let people know in case this was an issue.

I'm pretty new at this, so I wasn't sure.

This repo looks like it is going to be a great resource, thanks!

Problem with minified js

Hello,

Thanks for putting this together, it looks exactly what I need to get a grip on the mean stack. I run into a problem however following the installation instructions.

After I install all the dependencies using npm install and bower install en start the server using node server.js, when I go to http://localhost:3000 I get a blank page with these errors in the console:

Uncaught SyntaxError: Unexpected token ILLEGAL :3000/lib/jquery/jquery.min.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/lib/angular/angular.min.js:1
Uncaught SyntaxError: Unexpected token & :3000/lib/angular-cookies/angular-cookies.min.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/lib/angular-resource/angular-resource.min.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/lib/angular-bootstrap/ui-bootstrap-tpls.min.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/app.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/config.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/services/global.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/services/articles.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/controllers/articles.js:1
Uncaught SyntaxError: Unexpected token % :3000/js/controllers/index.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/controllers/header.js:1
Uncaught SyntaxError: Unexpected token ILLEGAL :3000/js/init.js:1

Could someone tell me what I did wrong? I tried cloning the repo multiple times and reinstalling the dependencies but to no avail.

Thanks in advance!

A little more documentation for the first timers

It would be nice to have a quick start list on the github page for the project. Something that shows the simple things you need to edit to get functionality working. Example:

  1. Change 'password' in FILE
  2. Add API keys to FILE

Right now there is no document that tells people what variables/settings they might need to go change throughout the entire app.

Tests

I see several testing related dependencies in the package.json file but no test directory or test files.
It would be great to integrate some tests case, particularly for some basic rest api.

Socket.io

Some kind if integration with Socket.io would be great :)

Update To Readme.md required

On windows after cloning if you do "npm install" it errors out at the end since it tries to invoke bower which i think has shebang, which is not supported on windows.

So, after install node, mongodb. and doing npm install one has to do "node .\node_modules\bower\bin\bower install" I think if we update the post install to use this command it will take care of windows as well as unix like environment

Static files and illegal character errors

I was running through the quickstart instructions and kept getting a blank homepage when I'd navigate to localhost:3000. When I investigated further, it looks like the static files are experiencing a weird character conversion error. The browser thinks all of my .css and .js files are a mish-mash of '�' and a handful of other strange characters.

I commented out the express.compress call in config/express.js (lines 12 - 18)

    //Should be placed before express.static
    // app.use(express.compress({
    //     filter: function(req, res) {
    //         return (/json|text|javascript|css/).test(res.getHeader('Content-Type'));
    //     },
    //     level: 9
    // }));

and everything worked fine after that.

I'm new...any ideas what that's about?

Template files

Hi, I am trying to figure out why you are using app/views (e.g. for user) and public/views (articles) but I can't figure it out.

Could you give some info about this?

Thanks for this repository, really great!

Integrating D3

Hey guys,
I really appreciate this repo. I have never used Bower before and am trying to figure out the best practice for integrating D3 into this project.

I was hoping you could provide some suggestions or a quick guide to go about doing this appropriately?

Thanks,
Eric

Where is mean-logger ?

$git clone ...
$npm install
$node server.js

get :

module.js:340
throw err;
^
Error: Cannot find module 'mean-logger'

in server.js file :

42 require('mean-logger').init(app,db);

Using Jugglingdb

I kind of suggest maybe use jugglingdb which is some what db independent which allows more people use whether mysql or mongo, it can be alternative to Mongoose or on a separate branch.

Stock MEAN install throws 404s

Apologies for the rookie issues, but after first running this app I get 404s on JS and CSS:

$ mate .
MacBooks-MacBook-Pro:mean-master mpirtle$ node server
Express app started on port 3000
GET / 304 256ms
GET /lib/bootstrap/docs/assets/css/bootstrap.css 404 50ms
GET /lib/bootstrap/docs/assets/css/bootstrap-responsive.css 404 119ms
GET /lib/jquery/jquery.min.js 404 117ms
GET /lib/angular/angular.min.js 404 116ms
GET /lib/angular-resource/angular-resource.min.js 404 64ms
GET /lib/angular-bootstrap/ui-bootstrap-tpls.min.js 404 65ms
GET /lib/angular-cookies/angular-cookies.min.js 404 66ms

Without being able to load the index of the app, I'm only able to manually view sign(in/out/up) and wonder what the rest would look like :-)

Documentation updates for clueless newbies like myself

Following are just notes I took while setting up a clean, bare MEAN last night. I'm happy to help with the documentation if needed - let me know and I can fork and then issue pull requests, if that is what you guys like.

  • Grunt is a dependency and should have instructions ("npm install -g grunt-cli"). Might require superuser privileges too.
  • In order to use grunt, you also need to have ruby and compass installed - which need to be listed as dependencies for grunt.

cannot install mean issue

15004 http 500 https://registry.npmjs.org/qs/0.6.5
15005 verbose bad json Internal routing error
15005 verbose bad json
15005 verbose bad json Sorry, we cannot connect to the intended server.
15005 verbose bad json
15005 verbose bad json We have just been notified of this problem. We will correct it as soon as possible.
15005 verbose bad json
15005 verbose bad json Feel free to contact us if you have any questions: [email protected]
15006 error registry error parsing json
15007 info retry will retry, error on last attempt: SyntaxError: Unexpected token I
15007 info retry Internal routing error
15007 info retry
15007 info retry Sorry, we cannot connect to the intended server.
15007 info retry
15007 info retry We have just been notified of this problem. We will correct it as soon as possible.
15007 info retry
15007 info retry Feel free to contact us if you have any questions: [email protected]
15008 info retry will retry, error on last attempt: Error: socket hang up
15009 info retry will retry, error on last attempt: Error: socket hang up
15010 http 500 https://registry.npmjs.org/emitter-component/1.0.0
15011 verbose bad json Internal routing error
15011 verbose bad json
15011 verbose bad json Sorry, we cannot connect to the intended server.
15011 verbose bad json
15011 verbose bad json We have just been notified of this problem. We will correct it as soon as possible.
15011 verbose bad json
15011 verbose bad json Feel free to contact us if you have any questions: [email protected]
15012 error registry error parsing json
15013 info retry will retry, error on last attempt: SyntaxError: Unexpected token I
15013 info retry Internal routing error
15013 info retry
15013 info retry Sorry, we cannot connect to the intended server.
15013 info retry
15013 info retry We have just been notified of this problem. We will correct it as soon as possible.
15013 info retry
15013 info retry Feel free to contact us if you have any questions: [email protected]
15014 info retry will retry, error on last attempt: Error: socket hang up
15015 http 500 https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz
15016 error fetch failed https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz
15017 info retry will retry, error on last attempt: Error: 500 Internal Server Error
15018 http 500 https://registry.npmjs.org/inherits
15019 verbose bad json Internal routing error
15019 verbose bad json
15019 verbose bad json Sorry, we cannot connect to the intended server.
15019 verbose bad json
15019 verbose bad json We have just been notified of this problem. We will correct it as soon as possible.
15019 verbose bad json
15019 verbose bad json Feel free to contact us if you have any questions: [email protected]
15020 error registry error parsing json
15021 info retry will retry, error on last attempt: SyntaxError: Unexpected token I
15021 info retry Internal routing error
15021 info retry
15021 info retry Sorry, we cannot connect to the intended server.
15021 info retry
15021 info retry We have just been notified of this problem. We will correct it as soon as possible.
15021 info retry
15021 info retry Feel free to contact us if you have any questions: [email protected]
15022 info retry will retry, error on last attempt: Error: socket hang up
15023 info trying registry request attempt 2 at 17:50:46
15024 http GET https://registry.npmjs.org/ini
15025 info postinstall [email protected]
15026 verbose about to build /var/www/mean/node_modules/connect-mongo/node_modules/mongodb
15027 info build /var/www/mean/node_modules/connect-mongo/node_modules/mongodb
15028 verbose linkStuff [ false,
15028 verbose linkStuff false,
15028 verbose linkStuff false,
15028 verbose linkStuff '/var/www/mean/node_modules/connect-mongo/node_modules' ]
15029 info linkStuff [email protected]
15030 verbose linkBins [email protected]
15031 verbose linkMans [email protected]
15032 verbose rebuildBundles [email protected]
15033 verbose rebuildBundles [ 'bson' ]
15034 info install [email protected]
15035 info postinstall [email protected]
15036 verbose about to build /var/www/mean/node_modules/connect-mongo
15037 info build /var/www/mean/node_modules/connect-mongo
15038 verbose linkStuff [ false, false, false, '/var/www/mean/node_modules' ]
15039 info linkStuff [email protected]
15040 verbose linkBins [email protected]
15041 verbose linkMans [email protected]
15042 verbose rebuildBundles [email protected]
15043 verbose rebuildBundles [ 'mongodb' ]
15044 info install [email protected]
15045 info postinstall [email protected]
15046 info trying registry request attempt 2 at 17:50:46
15047 http GET https://registry.npmjs.org/broadway/0.2.7
15048 info trying registry request attempt 2 at 17:50:46
15049 verbose etag "8NFZE186SC0218SIA7RX07BZM"
15050 http GET https://registry.npmjs.org/pkginfo
15051 info trying registry request attempt 2 at 17:50:47
15052 http GET https://registry.npmjs.org/eyes
15053 info trying registry request attempt 2 at 17:50:47
15054 http GET https://registry.npmjs.org/cycle
15055 http 500 https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.12.tgz
15056 error fetch failed https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.12.tgz
15057 info retry will retry, error on last attempt: Error: 500 Internal Server Error
15058 info trying registry request attempt 2 at 17:50:48
15059 http GET https://registry.npmjs.org/stack-trace
15060 info trying registry request attempt 2 at 17:50:48
15061 http GET https://registry.npmjs.org/minimatch
15062 http 500 https://registry.npmjs.org/mkdirp/0.3.0
15063 verbose bad json Internal routing error
15063 verbose bad json
15063 verbose bad json Sorry, we cannot connect to the intended server.
15063 verbose bad json
15063 verbose bad json We have just been notified of this problem. We will correct it as soon as possible.
15063 verbose bad json
15063 verbose bad json Feel free to contact us if you have any questions: [email protected]
15064 error registry error parsing json
15065 info retry will retry, error on last attempt: SyntaxError: Unexpected token I
15065 info retry Internal routing error
15065 info retry
15065 info retry Sorry, we cannot connect to the intended server.
15065 info retry
15065 info retry We have just been notified of this problem. We will correct it as soon as possible.
15065 info retry
15065 info retry Feel free to contact us if you have any questions: [email protected]
15066 silly lockFile 2c445be5-send-0-1-3 [email protected]
15067 silly lockFile 2c445be5-send-0-1-3 [email protected]
15068 verbose about to build /var/www/mean/node_modules/express
15069 info /var/www/mean/node_modules/express unbuild
15070 info preuninstall [email protected]
15071 info uninstall [email protected]
15072 verbose true,/var/www/mean/node_modules,/var/www/mean/node_modules unbuild [email protected]
15073 verbose /var/www/mean/node_modules/.bin,[object Object] binRoot
15074 info postuninstall [email protected]
15075 error Error: socket hang up
15075 error at createHangUpError (http.js:1453:15)
15075 error at CleartextStream.socketCloseListener (http.js:1503:23)
15075 error at CleartextStream.EventEmitter.emit (events.js:117:20)
15075 error at tls.js:681:10
15075 error at process._tickCallback (node.js:415:13)
15076 error If you need help, you may report this log at:
15076 error http://github.com/isaacs/npm/issues
15076 error or email it to:
15076 error [email protected]
15077 error System Linux 3.5.0-36-generic
15078 error command "/usr/bin/node" "/usr/bin/npm" "install"
15079 error cwd /var/www/mean
15080 error node -v v0.10.15
15081 error npm -v 1.3.5
15082 error code ECONNRESET
15083 verbose exit [ 1, true ]

Error on npm install


> [email protected] postinstall /Users/altryne/www/followme
> node_modules/bower/bin/bower install


module.js:340
    throw err;
          ^
Error: Cannot find module 'mout'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/altryne/www/followme/node_modules/bower/bin/bower:6:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
npm ERR! [email protected] postinstall: `node_modules/bower/bin/bower install`
npm ERR! `sh "-c" "node_modules/bower/bin/bower install"` failed with 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the mean package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node_modules/bower/bin/bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls mean
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/altryne/www/followme
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/altryne/www/followme/npm-debug.log
npm ERR! not ok code 0

Needed to copy bower_components to public/lib

As referenced in issue #13, I was getting 404s on Angular, jQuery, Bootstrap.

I was able to fix this by copying the contents of the bower_components folder to public/lib folder.

Should bower.json have a "main" attribute of "public/lib" ? Not sure I fully understand bower, but presumably need to somehow point it to install in the right location. Or am I doing something else wrong?

Install failed at postinstall bower unrecognized command

On a windows 7 machine tried on consoles cygwin and cmd.exe

c:\mean-master>npm install

....

 npm http 304 https://registry.npmjs.org/event-emitter
 npm http 304 https://registry.npmjs.org/next-tick
 npm WARN prefer global [email protected] should be installed with -g

 > [email protected] postinstall c:\mean-master
 > ./node_modules/bower/bin/bower install

 '.' is not recognized as an internal or external command,
 operable program or batch file.
 npm ERR! [email protected] postinstall: `./node_modules/bower/bin/bower install`
 npm ERR! `cmd "/c" "./node_modules/bower/bin/bower install"` failed with 1
 npm ERR!
 npm ERR! Failed at the [email protected] postinstall script.
 npm ERR! This is most likely a problem with the mean package,
 npm ERR! not with npm itself.
 npm ERR! Tell the author that this fails on your system:
 npm ERR!     ./node_modules/bower/bin/bower install
 npm ERR! You can get their info via:
 npm ERR!     npm owner ls mean
 npm ERR! There is likely additional logging output above.

 npm ERR! System Windows_NT 6.1.7601
 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
 ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
 npm ERR! cwd c:\mean-master
 npm ERR! node -v v0.8.21
 npm ERR! npm -v 1.2.11
 npm ERR! code ELIFECYCLE
 npm ERR!
 npm ERR! Additional logging details can be found in:
 npm ERR!     c:\mean-master\npm-debug.log
 npm ERR! not ok code 0

 c:\mean-master>

karma:unit failed

I followed the step and when I start grunt server or node server following error occurs

Running "karma:unit" (karma) task
INFO [karma]: Karma server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
WARN [watcher]: Pattern "/home/hitesh/node/test/mock/**/*.js" does not match any file.
WARN [launcher]: Chrome have not captured in 5000 ms, killing.
INFO [launcher]: Trying to start Chrome again.
WARN [launcher]: Chrome have not captured in 5000 ms, killing.
INFO [launcher]: Trying to start Chrome again.
WARN [launcher]: Chrome have not captured in 5000 ms, killing.
Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.`

Error on "grunt" command - missing coffeescript


module.js:340
    throw err;
          ^
Error: Cannot find module 'coffee-script'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/altryne/www/followme/node_modules/grunt/lib/grunt.js:16:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Seems that coffeescript is missing from requirements.json?

Grunt says 'compass' is needed too

I am trying to follow the 'quick install' part on mean.io . It says Grunt is optional and nothing more about Compass. But when I write grunt on command line, this is what I get:

Running "compass:dist" (compass) task 
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.

Aborted due to warnings.

Shouldn't it be written on the 'Optional (Requirements for Grunt)' part after the grunt? Or am I missing something?

How to use another Angularjs modules?

I have a module called: components.js with the content inside:

angular.module('components', []). directive('tabs', function() { do somethings }).

How to define this module in MEAN and use it likely another directive?

Thank?

Separating the A from the ME-N

Not an issue, a question: I'm wondering if it would be useful to separate the static angular part from the dynamic part.

The angular part could be served using nginx, be scaffolded by yeoman (yo angular appname) and, why not, be integrated with phonegap as mobile app.

The ME-N would be then a pure REST service.

In the case of mean-stack by linnovate, the two are mixed and it does not seem possible to me to use the tools described by Angular Team (Yeoman, Karma, etc ...). Or am I wrong?

Write mean command line

Should be able to run

  1. mean make (scaffolds stuff) - like mean make mobile etc..
  2. mean install (runs bowers and npm install and installs mean modules)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.