Angular.js Project Scaffolding on Ubuntu Linux
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with the AngularJs Project Scaffolding by Yeoman, Grunt and Bower Tools on Ubuntu GNU/Linux Desktop.
Yeoman is an Open Source Web’s Scaffolding Tool for Modern WebApps.
Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive.
Grunt is the JavaScript Task Runner. With Grunt you can automate just about anything with a minimum of effort.
Bower is a Package Manager for the Web. Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for.
-
Open a Shell Terminal emulator window
Ctrl+Alt+t on Desktop
(Press “Enter” to Execute Commands) -
How to Install the Latest Node.js on Ubuntu Linux
-
Installing Git
Check if it is already there:which git
To install Git for Ubuntu:
sudo apt-get install git
If Got “User is Not in Sudoers file” then see: How to Enable sudo
-
Installing Angular Generator.
npm install -g generator-angular
Specifying the -g flag when invoking npm install ensures that the desired package will be available globally on your machine.
-
Installing Grunt.
npm install -g grunt-cli
-
Installing Bower.
npm install -g bower
Finally, Amend Permissions with:
sudo chown -R $LOGNAME:$LOGNAME ~/.config
-
Installing Yeoman.
npm install -g yo
-
AngularJs Project Scaffolding with Yeoman
First, make a target environment:cd ~/Documents
mkdir -p anguarJs/scaffoldPro
cd anguarJs/scaffoldPro
Scaffold your AngularJs Project:
yo scaffold scaffoldPro
This will fire the AngularJS Yeoman generator, which asks you a few questions about how to setup your App…