Skip to content
/ gatsby-template Public template

Opinionated gatsby template for rapid prototyping (but production ready)

License

Notifications You must be signed in to change notification settings

nandiheath/gatsby-template

Repository files navigation

Gatsby Exemplar

A simple blog that built on Gatsby with typescript. Aim to provide an easy way to start a web project which has everything automatic and 100% free!

Stack

  • Material UI - UI component framework for React
  • Emotion - For writing inline CSS style with Javascript
  • TailwindCSS - Provide utilities for CSS classes
  • Eslint/Prettier - Linting and opinionated formatting
  • Github Actions - CI/CD pipelines
  • Github Pages - Free hosting

Get started

# prepare environment
cp .env.sample .env

# Install dependencies and start
yarn && yarn develop

Deploying with Custom Domain

Update the configuration in .github/workflows/deploy.yaml

  steps:
  - name: 🚜 Building
    run: yarn build
    env:
      # Update this to your host name
      SITE_URL: https://web.myhost.com
  - name: 🚢 Deploying to Github Pages
      uses: peaceiris/actions-gh-pages@v3
      with:
        # uncomment `cname` and change this to your host name
        cname: web.myhost.com

Configure your DNS service following the guide, which most of the case will be configuring a CNAME record pointing to <user>.github.io

Once the changes are committed to the main branch this will automatically trigger Github Actions to build and release to Github Pages, and you can navigate to your host name e.g. https://web.myhost.com to browse your web!

About

Opinionated gatsby template for rapid prototyping (but production ready)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published