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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
760
Componentize all the things!
jsist
1
220
From Website to Webapp: Introducing SAFE
jsist
0
110
Hardware Development for JavaScript Developers
jsist
0
91
This is bigger than us: Building a future for Open Source
jsist
0
87
Getting Started with ClojureScript
jsist
0
130
Ember.js Framework
jsist
2
130
AngularJS Directives for D3JS: Enhancing the dynamic behavior of data visualization
jsist
0
160
Other Decks in Programming
See All in Programming
Kubernetesを使わない環境にもCloud Nativeなデプロイを実現する / Enabling Cloud Native deployments without the complexity of Kubernetes
linyows
3
540
AIエージェントの隔離技術の徹底比較
kawayu
0
430
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1k
20260514_its_the_context_window_stupid.pdf
heita
0
1.1k
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
120
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
210
今さら聞けないCancellationToken
htkym
0
180
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.6k
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
410
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
340
RailsTokyo 2026#4: AI様があれば、 Hotwireの弱点は消えるか?
naofumi
5
920
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
150
Featured
See All Featured
A better future with KSS
kneath
240
18k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
How to build a perfect <img>
jonoalderson
1
5.5k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
210
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
120
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Visualization
eitanlees
151
17k
Prompt Engineering for Job Search
mfonobong
0
320
30 Presentation Tips
portentint
PRO
1
300
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