Dec 09, 2018 12:53:01

Techno in Asia, day 1: Strapi, ideas, questions

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

lowen flowen

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

Man oh man. So much unexplored territory.

Let's start with Strapi. 

Installed it without spending too much effort. This tutorial got me going. Some notes that happened while following this tutorial:

- make sure correct ports are opened (firewall settings `ufw` in my case)

- at the end of the tutorial, strapi is run in production mode. But 'content-type creator' plugin is only available in development mode. I created another pm2 task so I can restart into production mode and use the plugin to create my data.

- filed some bugs @ strapi Github


So many questions in my head and new challenges to solve:

- my front end is now the /public/ Strapi folder. I guess I need to have a different kind of nginx redirect (perhaps a subdomain for the API?) as the main domain should be pointing towards Netlify servers where I deploy my static site.

- configure Strapi so from the Netlify servers I can get the data and the scraper can create new records.

- create webhooks which are invoked after the scraper is done with inserting new data into Strapi API. I wouldn't want Strapi to send a Webhook for every new record I insert, rather when the task is completely done by the scraper. 


So right now I have this running. It gathers the data from my api @ technoinasia.com and is hosted at Netlify. Great!



 


  • 1

    @flowen looking good in one day 🤩

    Basile Samel avatar Basile Samel | Dec 10, 2018 06:55:36
    • 1

      @flowen @basilesamel thanks man! I always think I'm not doing enough 🌶

      lowen flowen avatar lowen flowen | Dec 10, 2018 08:02:09
contact: email - twitter - facebook