Skip to content

mdrakiburrahman/rakirahman.me

Repository files navigation

License: MIT

build

My personal blog running on Gatsby.

Tech Stack

How to use, on a windows machine

There's a Linux devcontainer in this repo, it's really slow with real-time updates from filesystem, windows direct development is much smoother.

  1. Clone this repository.

  2. Install nodejs 14.2.0 (yes, I'm in dependency hell and don't want to upgrade) via choco:

     choco install nodejs.install --version=14.2.0 -y --force
    
     node --version
     # v14.2.0
  3. Install Gatsby with npm install -g gatsby-cli@2.12.21.

  4. cd into the root directory of the cloned repository and run npm install to install all site dependencies - this takes a few minutes grabbing all the packages in yarn.lock.

  5. Run gatsby develop to build and start a local development server.

  6. View the site at localhost:8000, with graphql endpoint at localhost:8000/___graphql

  7. To view a production version of the site, run: gatsby clean; gatsby build; gatsby serve and view at localhost:9000

CI/CD

Pushing code into this repository triggers two GitHub Actions:

  1. Purge Azure CDN: which clears the Azure CDN cached content via purging
  2. Deploy Website to Azure Storage Account: which builds the static site with gatsby build, and uploads content to an Azure Storage Account - where the site is being hosted.

License

This project is open source and available under the MIT License

Releases

No releases published

Packages

No packages published

Languages