This repository holds the source code to my blog (hosted at the URI above).
- Clone this repository
- Run
yarn
to install the dependencies - Run
yarn dev
to start the website locally - Run
yarn build
to generate the assets/files to be deployed - Run
yarn deploy
to deploy to CloudFlare Pages- You may also need to set the environment variable
CLOUDFLARE_API_TOKEN
or configurewrangler
to authenticate your terminal session with the CloudFlare API
- You may also need to set the environment variable
- Hosted on CloudFlare Pages
- why? CloudFlare Pages is an incredibly low-cost hosting provider and because of its distributed nature (CloudFlare is a CDN) it serves the content from a location/cache closest to the user
- Built with SvelteKit
- Styled with Tailwind CSS
- why? Tailwind CSS is a simple, intuitive, modern framework for styling websites, I find it easy to use and better than similar libraries such as Bootstrap
- TypeScript
- why? there's very little code in this blog, but wherever there is code I choose to use TypeScript whenever possible because it is a strongly-typed language capable of achieving multiple programming paradigms
- Markdown
- why? Markdown is a an excellent format for writing content without the distractions of writing HTML directly. This repository uses a library (MDsveX) to convert Markdown files into HTML