Skip to main content

3 posts tagged with "Elixir"

View All Tags

How to Build WatermelonDB Sync Backend in Elixir

· 13 min read
Fahri Nurul Hidayat
Software Engineer

WatermelonDB​

WatermelonDB is a reactive database for React frontend application that supports data synchronization.

WatermelonDB

What I like about this database is you can bring your own sync backend (HTTP-based) as long as it complies with this spec:

OperationRequest Params / BodyResponse Body
Pull- lastPulledAt: integer, Unix time in milliseconds (ms)- changes: (JSON)
- timestamp: integer, Unix time in milliseconds (ms)
Push- changes: (JSON)
- lastPulledAt: integer, Unix time in milliseconds (ms)
X

The following is a brief how pull and push operation works. Please refer to Sync documentation for the details

File Downloading in Headless Chrome Using ChromeDriver and Hound

· 4 min read
Fahri Nurul Hidayat
Software Engineer

Recently, I am making a simple Elixir application performing some actions to a website in an automated way.

The automated testing tool is a perfect candidate to be used to help to build application like that. I use Hound as browser automation library and Chrome as a controlled browser. For the browser driver, I use ChromeDriver.