This repository will contain a list of all blog posts that are uploaded/committed to Hashnode and Dev.TO. This is the parent repository for the DevSec Blueprint and all of Damien's blog posts that he's written over the course of his career.
PSA: Make sure you read your own damn docs for your own good, because you and I both know you tend to "forget"!
- A blogger, referred to as "ME", uses a "DSB Blogging Assistant" to create a blog post in Markdown format. The blogger checks in the blog post (MD) to a "Source Repo" (a source repository, likely on GitHub).
- Once the blog post (MD) has been checked into the source repository, Hashnode grabs the latest blog post and publishes it as a "draft" unless specified otherwise in the blog.
- GitHub Actions, which are automated tasks, are then triggered to sync, process, and process the markdown file from the repository.
- The GitHub Actions are part of a workflow that includes an automated process to replicate the post from Hashnode to Dev.TO and Medium. There is some comparative analysis that takes place here.
- The blog posts are published to Medium and Dev.TO, with the canonical URL set to the Hashnode Blog (the original blogging site).
-
Install the dependencies listed in
requirements.txt
:pip install -r requirements.txt
-
Format the code using Black:
black .
-
Lint the code using Pylint:
pylint .
-
Execute Python Application:
python src/main.py
NOTE: Make sure you have all of our environment variables configured before doing this. If you aren't sure, check out the GitHub Actions.