Dec 19, 2018 04:23:16

Techno in Asia, day 6: dumping Strapi

by @flowen PATRON | 318 words | 🐣 | 44💌 | 3💧

lowen flowen

Current day streak: 0🐣
Total posts: 44💌
Total words: 16091 (64 pages 📄)
Broken streaks: 3💧

I was done with Strapi after this comment (from the Strapi Slack):

mmm @flowen changing field names in Strapi doesn't rename them on the DB side
I wouldn't suggest that if you can avoid it

I noticed the same developing experience I had when I was working on dateanomad with Meteor js. Out of the box, everything seems to work great, but once you fiddle a bit and you want something extra or custom.. things get tough, break or just plain annoying. Why the hell would you be able to change field names but won't rename in the DB so everything has to be done manually again? This means keeping 2 resources up to date and I decided to completely drop Strapi from my workflow.

I was hustling with the idea that I could scrape everything straight into MongoDB and source it from there to Gatsby.

Then discovered Gatsby-gram (case study here), a Gatsby clone with a Nodejs scraper. Almost purrrrfect 😻 Apparently Instagram has a great and open Graphql/json endpoint, which they utilise to great extent. I'll have to re-write this to cheerio and Nodejs myself. The scraper (though now an error because of a change in the IG API) was a great example of how to download images as well. 

I started the day, pondering about Strapi. When you've worked on something for a bit: trying to understand it, feeling excited by the possibilities and "super powers" it might give you, it is such a drag to dump it and start over again. It felt like my spirit was demolished and I would rather give up and focus on other things. Instead, how lucky I was to find such a great example. In the next few days, I will hopefully finish my scraper. And then I'll be able to say that in hindsight, this was a great decision!

  • 1

    @flowen I'm guessing they're taking the concept of opinionated software to the extreme in the sense that even minimal customization breaks the whole API :)

    The Pageman avatar The Pageman | Dec 19, 2018 11:42:18
    • 1

      @thepageman haha ✌🏽

      lowen flowen avatar lowen flowen | Dec 20, 2018 11:06:48
contact: email - twitter - facebook