Joshfire factory: Using NodeJS in production
-
Upload
steren-giannini -
Category
Technology
-
view
3.576 -
download
2
description
Transcript of Joshfire factory: Using NodeJS in production
![Page 1: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/1.jpg)
@SterenParis JS
2012-04-16
Using Node.js in production on the Joshfire Factory
![Page 2: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/2.jpg)
http://factory.joshfire.com
we're hiring!
![Page 3: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/3.jpg)
![Page 4: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/4.jpg)
![Page 5: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/5.jpg)
![Page 6: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/6.jpg)
![Page 7: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/7.jpg)
![Page 8: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/8.jpg)
![Page 9: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/9.jpg)
![Page 10: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/10.jpg)
Share code between client & server
Same language, same libs: JS expertise
Why
![Page 11: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/11.jpg)
Architecture
![Page 12: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/12.jpg)
![Page 13: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/13.jpg)
Factory
REST API
Express JSuse middlewares for pagination, filters, private beta...
Mongoose - EveryAuth - LESS
Single page web-app using
![Page 14: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/14.jpg)
Datacalled by generated apps and app builer
proxy server for online datasource
cache, data-enrichment, normalization
data-source code may be used
client side or server side.server side HTML parsing
can return code client-side usable code
requiredJS, almond
![Page 15: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/15.jpg)
Production
![Page 16: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/16.jpg)
Tests
jasmine + Jenkins
![Page 17: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/17.jpg)
staging / production
same environments
final tests on staging
1 week release cycle
![Page 18: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/18.jpg)
Hosting
$ git push heroku prod:master
![Page 19: Joshfire factory: Using NodeJS in production](https://reader035.fdocuments.net/reader035/viewer/2022081403/5560b4b8d8b42a033c8b492b/html5/thumbnails/19.jpg)
http://factory.joshfire.com
we're hiring!