-
chiubaca.com
Discontinued My blog. Place for my personal ramblings about, programming, life & well-being.
-
gridsome-source-devto
This is a source plugin for DEV.to. It retrieves all your published articles via the DEV API (beta).
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
How this works at high level. In my .src/pages/index.vue file, the home page of the blog, I fetch a list of all published posts from the DEV.to API using the /articles/me endpoint. This data fetching is done within the asyncData hook and this endpoint returns an array of your published posts. With the data retrieved, I list each of the posts, and link to a new page by making use of the router component. I re-use the DEV.to post slug for the sub-paths of each of the blogs, like so:
Next was to connect Gridsome to DEV.to. There were already plug-ins for this but I decided to hand roll my own as a learning exercise 🤓.