Rescript is a delightful programming language pulling in the best elements of Javascript and functional languages without the worst bits of either. In this article, we create a graphql server in Rescript.
Instead of writing a new article on Rescript this weekend, I ended up writing an entire project in Rescript!
rescript-zora provides Rescript bindings to the lightning-fast zora unit testing framework. I chose zora because it has excellent SEO for “fastest javascript test framework”, and it deserves it.
Now that our RxDB models are complete, we can hook it up to a react app for a complete offline experience.
Extending the JS bindings I’ve modelled in previous articles, in this add bindings for subscribing to queries, and hook those up to Application state.
In an earlier article, I started modelling RxDB calls from rescript with the intent of building an offline-enabled Rescript app. This article continues from that base, modelling collections and queries.
I wanted to explore progressive web apps, and I took the opportunity to learn about binding Rescript to existing Javascript libraries.
As part of my ongoing experiments with Rescript, I decided to implement a Node app with express.