3 ms·
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 a
by chaostheory 9y ago
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 9y agoIt'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.
- dbbk 9y ago> 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 9y agoI could be wrong, but this doesn't look like a front end framework.