Then the previous blog post socket.io+angular.js+express.js do a chat application (ii)
First development before the introduction of the next bower, which is used to manage the front-end Class library (specific introduction, installation can see HTTP://BLOG.CSDN.NET/EDAGARLI/ARTICLE/DETAILS/26359535)
[email protected]:~/projects/nodejs/chattingnode$ bowerusage:bower <command> [<args>] [< Options>]commands:cache Manage Bower Cache help Display Help information AB Out Bower Home Opens a package homepage into your favorite browser info info o f a particular package init interactively create a Bower.json file install instal L A package locally link Symlink A package folder List List Local Packages Lookup look up a package URL by name Prune removes local extraneous packages Regi Ster Register A package search search for a package by name update Update a local package uninstall Remove a local package version Bump a package version Options:-F,--force Makes various commands more forceful-j,--json Output consumable json-l,--log-level what L Evel of logs to Report-o,--offline does not hits the network-q,--quiet only output important Information-s,--silent do not output anything, besides errors-v,--verbose makes output more Verbose--allow-root allows running commands as Rootsee ' Bower help <command> ' for more information o n a specific command.
Description Bower installation is successful!
Use Bower to install bootstrap and ANGULARJS
[email protected]:~/projects/nodejs/chattingnode$ Bower Install bootstrap angular--savebower not-cached git:// Github.com/twbs/bootstrap.git#*bower Resolve Git://github.com/twbs/bootstrap.git#*bower not-cached GIT://GITHUB.C Om/angular/bower-angular.git#*bower Resolve git://github.com/angular/bower-angular.git#*bower Download https:// Github.com/angular/bower-angular/archive/v1.2.16.tar.gzbower Download https://github.com/twbs/bootstrap/archive/ V3.1.1.tar.gzbower extract angular#* Archive.tar.gzbower resolved git://github.com/angular/bower-angular.git#1. 2.16bower extract bootstrap#* Archive.tar.gzbower resolved git://github.com/twbs/bootstrap.git#3.1.1bower Cache D Git://github.com/jquery/jquery.git#2.1.1bower Validate 2.1.1 against git://github.com/jquery/jquery.git#> = 1.9.0bower Install angular#1.2.16bower install bootstrap#3.1.1bower install jquery#2.1.1bower No-json No Bower.json file to save To, use Bower init to create oneangular#1.2.16 bower_components/angularbootstrap#3.1.1 bower_components/bootstrap└── jquery#2.1.1jquery#2.1.1 Bower_components/jquery
Add Class library to Index.ejs
<! DOCTYPE html>
Project Source Address:Https://github.com/edagarli/chattingnode