@@ -24,7 +24,9 @@ Clone the angular-socket-io-seed repository and start hacking!
24
24
25
25
Runs like a typical express app:
26
26
27
- node app.js
27
+ ``` shell
28
+ node app.js
29
+ ```
28
30
29
31
### Running tests
30
32
@@ -34,6 +36,14 @@ Coming soon!
34
36
35
37
Just fetch the changes and merge them into your project with git.
36
38
39
+ ### Updating ` angular.js `
40
+
41
+ Alternatively, you can update AngularJS with [ Bower] ( http://bower.io ) :
42
+
43
+ ``` shell
44
+ bower update angular
45
+ ```
46
+
37
47
## Example Application
38
48
39
49
I created a [ simple instant messaging application] ( https://github.com/btford/angular-socket-io-im )
@@ -42,30 +52,28 @@ illustrate using the seed.
42
52
43
53
## Directory Layout
44
54
45
- app.js --> app config
46
- package.json --> for npm
47
- public/ --> all of the files to be used in on the client side
48
- css/ --> css files
49
- app.css --> default stylesheet
50
- img/ --> image files
51
- js/ --> javascript files
52
- app.js --> declare top-level app module
53
- controllers.js --> application controllers
54
- directives.js --> custom angular directives
55
- filters.js --> custom angular filters
56
- services.js --> custom angular services
57
- lib/ --> angular and 3rd party JavaScript libraries
58
- angular/
59
- angular.js --> the latest angular js
60
- angular.min.js --> the latest minified angular js
61
- angular-*.js --> angular add-on modules
62
- version.txt --> version number
55
+ app.js --> app config
56
+ bower.json --> for bower
57
+ package.json --> for npm
58
+ public/ --> all of the files to be used in on the client side
59
+ css/ --> css files
60
+ app.css --> default stylesheet
61
+ img/ --> image files
62
+ js/ --> javascript files
63
+ app.js --> declare top-level app module
64
+ controllers.js --> application controllers
65
+ directives.js --> custom angular directives
66
+ filters.js --> custom angular filters
67
+ services.js --> custom angular services
68
+ bower_components/
69
+ angular/ --> angular.js
70
+ angular-socket-io/ --> socket.io adapter for angular
63
71
routes/
64
- index.js --> route for serving HTML pages and partials
72
+ index.js --> route for serving HTML pages and partials
65
73
views/
66
- index.jade --> main page for app
67
- layout.jade --> doctype, title, head boilerplate
68
- partials/ --> angular view partials (partial jade templates)
74
+ index.jade --> main page for app
75
+ layout.jade --> doctype, title, head boilerplate
76
+ partials/ --> angular view partials (partial jade templates)
69
77
partial1.jade
70
78
partial2.jade
71
79
0 commit comments