58. You don’t need DBA.
Make it simple, flexible and extensible.
Wednesday, June 24, 2009
59. Remedie schema
Few indexes
JSON key-values
Wednesday, June 24, 2009
60. CREATE TABLE channel (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
type INTEGER NOT NULL,
parent INTEGER NOT NULL,
ident TEXT NOT NULL,
name TEXT NOT NULL,
props TEXT
);
CREATE UNIQUE INDEX channel_ident ON channel (ident);
Wednesday, June 24, 2009
61. CREATE TABLE item (
id INTEGER NOT NULL PRIMARY KEY
AUTOINCREMENT,
channel_id INTEGER NOT NULL,
type INTEGER NOT NULL,
ident TEXT NOT NULL,
name TEXT NOT NULL,
status INTEGER NOT NULL,
props TEXT
);
CREATE INDEX item_status ON item (status)
CREATE UNIQUE INDEX item_ident ON item (channel_id,
ident);
Wednesday, June 24, 2009
108. Download .zip, copy .app to
/Applications, Run it.
Wednesday, June 24, 2009
109. Also:
github.com/miyagawa/perl-app-builder
Wednesday, June 24, 2009
110. Summary
• micro web server as a desktop app
• HTTP::Engine, JSONRPC and router
• SQLite to store key-value
• jQuery plugins to enable desktop UIs
• More tools to make it really “.app”
Wednesday, June 24, 2009
111. That’s it!
Questions?
Wednesday, June 24, 2009
112. Thank you!
twitter.com/miyagawa
Wednesday, June 24, 2009