This year's project needs, I began to think about front-end development. Since the project had already used Angularjs before, I continued to use it.
Before using Angularjs, you must prepare tools: Nodejs, npm, git, bower, fis
The following is the installation method of each tool (the development machine is 64-bit Win10):
1.Nodejs
1>Download and install: https://nodejs.org/dist/v6.2.2/node-v6.2.2-x64.msi
2> Verify installation: node - v
2.npm
1> Verify installation (with nodejs installed): npm -v
2> Configuration parameters:
npm config set prefix "E:/tools/nodejs/node_global"
npm config set cache "E:/tools/nodejs/node_cache"
3> Set the environment variable of node: E:/tools/nodejs/node_global
3.git
Download and install: https://www.git-scm.com/download/win
4.bower
1> Install: npm install -g bower;
2> Commonly used commands:
bower init;
bower install jquery;
bower uninstall jquery;
bower cache clean;
bower update;
3> Configure the project's .bowerrc
{
"directory": "app/lib"
}
5. fis
1> Installation:
npm install -g fis;
npm install -g fis-postpackager-simple;
2> Commonly used commands:
fis release -d ../dist
fis release --optimize --md5 --pack -d ../dist --domains
fis server open
fis server start
fis server stop
6. angular-seed
The above Augularjs-start detailed explanation is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.