Hacker News new | ask | show | jobs
by amelius 3992 days ago
> Featuring nearly 100% shared server and client-side code

If the code can run on the client as well as on the server, does this mean the client has direct database access?

How well does that work out for the number of required round-trips?

1 comments

the skit frontend abstracts only a few things for server- and client-side code: http requests, cookies and redirects. so you write a REST API client in JS and populate the initial page state with it, and when you wake up in the browser you don't have to make any more requests (until the user does something).