Thursday, November 20, 2014

Setup Bower in windows machine and run angular seed projects in Netbeans.



1.     Download and install nodejs from http://nodejs.org/
a.     You can verify this by typing 2+3 and enter in the nodejs command window. It should return 5.
b.      If you are under proxy then you may need to set it using
                                                              i.       npm config set proxy http://”username:password”@proxyserver:port
                                                            ii.       npm config set https-proxy http://”username:password”@proxyserver:port
2.      Install git from http://git-scm.com/ all default options except one change as  shown below

a.     If you are under proxy you may need to specify proxy details as environment variables
                                                              i.      set HTTP_PROXY http://domain\username:password@proxyserver:port
                                                            ii.      set HTTPS_PROXY http://domain\username:password@proxyserver:port
                                                          iii.      set all_proxy http://domain\username:password@proxyserver:port
                                                          iv.      git config --global http.sslverify false
3.      Install Netbeans IDE 8.0.1 if you don’t have one
4.      Create HTML5 project using angularjs seed.
5.     You can see red mark on the project folder which you can resolve by right clicking on the project folder and selecting ‘Resolve project problems’
a.     If you are under proxy you may need to set proxy details in /.bowerrc as below
                                                              i.      "registry": "http://bower.herokuapp.com",
                                                            ii.      "proxy": "http://”username:password”@proxyserver:port".
                                                          iii.      "https-proxy": "http://”username:password”@proxyserver:port",
                                                          iv.      "strict-ssl": false.
6.     Now you can simply run this project in Netbeans just like any other project.



No comments:

Post a Comment