This is the "single source of truth" that stores all my articles.
It utilizes huantt/article-as-code to collect, store, and sync all my articles to various platforms, including dev.to and hashnode.dev.
I have created a GitHub action in the .github/workflows
directory that runs every 6 hours or whenever you commit to the main
branch.
Snowflake Schema vs. Star Schema: Pros, Cons, and Use Cases
Star Schema Structure: Central Fact Table: Contains quantitative data for...
11/06/2024
|
|
Is JWT Safe When Anyone Can Decode Plain Text Claims
If I get a JWT and can decode the payload, how is it secure? Why couldn't I just grab the token out...
06/06/2024
|
|
Understanding the "SELECT FOR UPDATE" SQL Statement
What is "SELECT FOR UPDATE"? SELECT FOR UPDATE is a clause in SQL that is appended to a...
06/06/2024
|
|
Managing Concurrent Purchases of Limited Items in a Database
Imagine that we're developing an e-commerce website. In this case, we have a limited number of items...
06/06/2024
|
|
Why does not postgres use my index?
This is a quick note 1. Query Conditions Not Matching the Index The index is not on the...
05/06/2024
|
Updated at: 2024-06-19T01:38:12Z - by huantt/article-listing
The docker-compose.yml
file helps us run the flow locally.
To run this Docker Compose, create a .secret.txt
file and fill in the following variables:
DEVTO_TOKEN
: Your Dev.to authentication token.DEVTO_USERNAME
: Your Dev.to username.HASHNODE_TOKEN
: Your Hashnode authentication token.HASHNODE_USERNAME
: Your Hashnode username.
Run the following command:
docker-compose up
sequenceDiagram
This repo ->> Dev.to: Get articles
Dev.to -->> This repo: Articles
This repo ->> This repo: Store articles as code
This repo ->> Dev.to: Sync articles
This repo ->> Hashnode.dev: Sync articles
This repo ->> Github: Commit