Build Full Stack Webapp Using Cloudflare Worker and Github Pages

I have been following the COVID situation in Shanghai lately. Intentionally or not, it is surprisingly hard to find a daily chart to reflect the proper case numbers overthere. To solve this problem, I decided to build a webapp just does exactly that: a simple chart the displays Shanghai daily COVID cases that includes both symptomatic and asymptomatic cases. The overall design includes a backend API that provides daily numbers in JSON format, and a front-end page that presents the data in the form of an area chart.
Read full post

Setup Kubernetes Cluster from scratch

This post I will try to go through the steps I took to build a Kubernetes cluster from scratch. The physcial host is an old Dell Latitude laptop with 8GB memory, which runs VMware ESXi 6.7. The plan is to run 3 nodes on it with one of the VM set as master. Each server runs Ubuntu 20.04. I will skip the VM building steps here as our focus is Kubernetes.
Read full post

I wrote a Cloudflare CLI tool

I just wrote a Cloudflare CLI tool called flare 🔥! Check it out from my GitHub repo [email protected]:tomkingchen/cloudflare-cli.git. The tool does some basic queries to Cloudflare API and retrieves information based on the parameters provided. The reason for creating the tool is mainly to help myself to quickly identify information hard to find through Cloudflare dashboard like Firewall rule ID. The current version is to focus on display information only rather than modifing configuration within Cloudflare.
Read full post

Bye Bye Google Blogger🖐, Hello Cloudflare Pages😘

I had enough of Google Blogger! It has terrible editing UI for and I constantly receiving SPAM comments for my posts😤. Time to move my blog off to somewhere better! I was thinking to run a Wordpress server. Though I think it’s way cooler to run my blog simplely without worrying about backend infrastructure. After look around, I ended up using Cloudflare Pages to publish my blog. This allows me to write my posts with Markdown and then generate static html pages using Hugo.
Read full post

Setup Cloudflare for S3 Bucket

One way to improve website performance is to use CDN to distribute the static contents of your site. S3 is a common place to host such type contents. In this post, I will show you how to publish a S3 bucket using Cloudflare. In fact, the screen shots used in this blogpost is published exactly through this manner. Setup S3 Bucket Permissions This is an optional step which adds a S3 bucket policy to your bucket.
Read full post