Lurker News

Comments (209) 32 threads

Show all comments

Showing thread 30 of 32

chaostheory2 replies#
Is there a reason why most Javascript web frameworks, like this one, tend to ignore relational databases?

hmm, I don't even see a mention of how to integrate any datastore with Sapper or did I miss something?

rich_harris#
It's just an Express app, so you can use whatever datastore you like — create a `routes/api/some-endpoint/[thing].js` file and export a request handler that interacts with your database of choice (or local files, or whatever).

Or serve your data from a different app altogether. There are so many possibilities here, depending on the requirements of your app, that it would be folly for a framework like Sapper to dictate how you solve this problem — instead, it gives you the tools to easily solve it yourself.

dbbk1 reply#
> Is there a reason why most Javascript web frameworks, like this one, tend to ignore relational databases?

Yes, because these are frontend frameworks and that is a backend concern.

chaostheory#
I could be wrong, but this doesn't look like a front end framework.