Bower is a package manager for front-end components.
In order to install it, you first need to install Node.js, and have the npm permissions fixed. then:
1. Install Bower using npm:
$ npm install -g bower
sources:
Bower is a package manager for front-end components.
In order to install it, you first need to install Node.js, and have the npm permissions fixed. then:
1. Install Bower using npm:
$ npm install -g bower
sources:
What is MEAN.JS?
MEAN.JS is a full-stack JavaScript solution that helps you build fast, robust, and maintainable production web applications using MongoDB, Express, AngularJS, and Node.js.
Why MEAN.JS?
MEAN.JS will help you getting started and avoid useless grunt work and common pitfalls, while keeping your application organized. Our goal is to create and maintain a simple and readable open-source solution that you can use and trust in your projects.
I. Install
1- Install yeoman
sudo npm install -g yo
After the installation, Yeoman Doctor will tell you that everything looks all right, in a message like this one (PS: he is a cool guy :D).
2- Install MEAN.JS generator:
npm install -g generator-meanjs
II. Generate the application
1- navigate to your working folder:
# for example :
cd /projects/js/meanApp
2- then use yo to generate your meanjs application
yo meanjs
You’ll have a short discussion with yeoman about your app setting, then he will scaffolds the whole application for you .
NOTE 2:
Or this is what is supposed to happen, in my case, after answering the last question, the installation goes smoothly for some seconds; then a horde of WARN and ERR! appears.That was caused by some permission error (which was indicated by EACCES), so, to deal with it I had to :
1. change the owner of the folder ./npm :
sudo chown my_user_name -R ~/.npm
2. clean the application directory:
by removing /meanApp directory, and recreate it again.
3. start over from the first step
PS: thanks liorkesos
3- run the application with grunt:
grunt
Now you can go to your favorite browser and type the address:
127.0.0.1:3000 or localhost:3000 to get this nice page telling you:
Congrats! You’ve configured and run the sample application.
MEAN.JS is a web application boilerplate, which means you should start changing everything :-)
– The MEAN.JS Team.
To add CRUD functionalities to this app please watch this video:
つづく
sources :
Grunt is the JavaScript task runner for Node.js.
In order to install it, you first need to install Node.js 0.8.0 or a newer version, and fix the npm (node package manager) permissions. then:
1. Install the Grunt’s command line interface (CLI) with:
npm install -g grunt-cli
sources:
I. Install
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
Create a list file for MongoDB
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
Reload local package database
sudo apt-get update
Install the latest stable version of MongoDB.
sudo apt-get install -y mongodb-org
II. Run
sudo service mongod start
Stop:
sudo service mongod stop
Restart:
sudo service mongod restart
III. Uninstall
Remove Packages:
sudo apt-get purge mongodb-org*
Remove Data Directories:
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
sources:
$ curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
$ sudo apt-get update
$ sudo apt-get install curl
$ sudo apt-get install -y nodejs
$ sudo apt-get install build-essential
The last step: in order to be able to install some npm packages globally without being stopped by EACCES errors is :
fixing npm permissions
sources :