Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Realtime MVC with Sails.js
Search
JSIST
September 27, 2014
Programming
160
0
Share
Realtime MVC with Sails.js
JSIST 2014
By : Serdar Doğruyol
http://jsist.org
JSIST
September 27, 2014
More Decks by JSIST
See All by JSIST
It's never too late to fight your legacy!
jsist
1
130
ES6: the future is now
jsist
0
750
Componentize all the things!
jsist
1
220
From Website to Webapp: Introducing SAFE
jsist
0
110
Hardware Development for JavaScript Developers
jsist
0
88
This is bigger than us: Building a future for Open Source
jsist
0
84
Getting Started with ClojureScript
jsist
0
120
Ember.js Framework
jsist
2
120
AngularJS Directives for D3JS: Enhancing the dynamic behavior of data visualization
jsist
0
160
Other Decks in Programming
See All in Programming
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
320
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
280
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
130
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
300
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
1.1k
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
150
煩雑なSkills管理をSoC(関心の分離)により解決する――関心を分離し、プロンプトを部品として育てるためのOSSを作った話 / Solving Complex Skills Management Through SoC (Separation of Concerns)
nrslib
4
1.1k
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
190
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
810
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
190
感情を設計する
ichimichi
5
1.6k
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
180
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
WENDY [Excerpt]
tessaabrams
10
37k
Code Review Best Practice
trishagee
74
20k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
280
GraphQLとの向き合い方2022年版
quramy
50
15k
Odyssey Design
rkendrick25
PRO
2
580
Six Lessons from altMBA
skipperchong
29
4.2k
4 Signs Your Business is Dying
shpigford
187
22k
Crafting Experiences
bethany
1
130
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Navigating Weather and Climate Data
rabernat
0
180
Transcript
Welcome to Istanbul
Serdar Doğruyol Lead Developer @webBox @sdogruyol
http://webbox.io
<3 Ruby <3 Javascript
Gorbachev Puff Puff Thunderhorse @gorbypuff
First Let’s talk about Node
• Javascript everywhere <3 • Freaking Fast • Perfect Fit
for Realtime Apps • NPM Rocks
is GREAT
BUT
hapi meteor flatiron actionhero koa geddy socketstream express zappa ???
http
Typical Node App • Everyone tries to reinvent the wheel
• No common structure • Security problems
None
None
None
“Node on Sails for modern apps.” P.S: I’m looking at
you Ruby on Rails
Modern App? • APIs • Security • Realtime
Sails • Convention over Configuration via MVC • Seamless Realtime
powered by Socket.io • Automatic API generation via Blueprints. • Security & Access Control via Policies.
MVC • Good ol’ MVC. Just like Rails, Django, Symfony
e.g • Views are EJS by default. Can be anything you prefer ( Jade e.g)
Waterline • Totally Database Agnostic ( SQL and NoSQL) •
ORM + ODM • Same code to retrieve data from different adapters. • Easily Customizable
Realtime = Easy • WebSockets <3 • Translates incoming socket
messages to be compatible with all of your routes. • No need to have a separate code base
Blueprints • Just like Rails’ scaffolds but for APIs. •
Built-in search, sort, pagination and complex queries. • Can be protected / controlled via policies.
Policies • Reusable • Basically Express Middleware • Preprocessing or
protecting to handle requests for controllers. • Can be used for access control, authentication,request limiting or anything you can think of.
Associations • PostgreSQL + MongoDB. Seriously? • Cross-connection. Different hosts,
users, easy legact data integration, e.g join two PostgreSQL databases with different schemas.
Other Goodies • Flexible Asset Pipeline. Customizable, Grunt- based, can
be used with all the existing plugins. • Custom Generators • REPL • Internationalization
None
Thank You! @sdogruyol