-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
43 lines (33 loc) · 1.17 KB
/
Copy pathREADME
File metadata and controls
43 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Test angular javascript developer test
Desciption:
In this test work I tried to show my technology stack:
I used websocket (socket.io) instead of ajax calls.
I wrote angularjs custom directives, filters, service, controller, used predefined directives (animate, pluralize) and shown how to work with emit/on events
Consumer - service - see /public/javascripts/services (consumerService)
get new messages from server, send this messages to presenter
Presenter - custom directive - see /public/javascripts/directives (presenter)
get new messages from Consumer and display them on html, user can manage showing time by changing lifetime directive parameter
One more point, the reason I dont like to use code comments, because code should be clear and understandable without any additional text information.
Get Project Dependencies:
npm install
Start application:
node ./bin/www
Browser
http://localhost:3000
Technology Stack:
nodejs
express.js
modules
repository pattern
callback
socket.io
ejs
angularjs
controller
directives (custom directives)
filters (custom filters)
services,
subscribe/unsubscribe events
socket.io
animate
npm, html, css, twitter bootstrap, moment.js