davidleger95 / some-podcasts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gnonce
Gatsby Starter Gnonce

Gatsby + Typescript + Styled Components = πŸ’–

πŸ‘©β€πŸ’» Features

  • Google Lighthouse optimized (100/100)
  • Search engine optimization
  • Social media and meta tags
  • One icon favicons
  • Manifest support
  • Sitemap support
  • Offline support
  • Easy to use media queries
  • Custom routes using separate routing file
  • Using Typescript
  • Using styled-components
  • Using Prettier
  • Using tslint

πŸš€ Quick start

  1. Create a Gatsby site.

    Use the Gatsby CLI to create a new site, specifying the blog starter.

    # create a new Gatsby site using the Gnonce starter
    gatsby new awesome-site https://github.com/gnonce/gatsby-starter-gnonce
  2. Start developing.

    Navigate into your new site’s directory and start it up.

    cd awesome-site/
    gatsby develop
  3. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

    Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open the awesome-site directory in your code editor of choice and edit src/containers/index.tsx. Save your changes and the browser will update in real time!

⚑️ Deploy

Netlify Status

Get your Gatsby site in 1 min.

Netlify is a unified platform that automates your code to create high-performant, easily maintainable sites and web apps. They provide continuous deployment (Git-triggered builds), an intelligent, global CDN, full DNS (including custom domains), automated HTTPS, asset acceleration, and a lot more.

Read more about deploying your Gatsby site to Netlify or some other provider!

Deploy to Netlify

πŸ›£ Routing

This starter uses custom routing plugin to separate routing configurations into external configuration file. Routes are defined in /src/routes.ts file by default. Path to external config can be changed in gatsby-config.js file.

Example on how to map component to route using routes.ts

// In your routes configuration file (routes.ts)
const path = require('path');
module.exports = [
  {
    path: '/',
    component: path.resolve(`src/containers/Home.jsx`)
  },
  {
    path: '/404/',
    component: path.resolve(`src/containers/404.js`)
  }
];

πŸ€“ What's inside?

└── static
    β”œβ”€β”€ assets
    β”‚   └── thumbnail
└── src
    β”œβ”€β”€ images
    β”‚   └── icon
    β”œβ”€β”€ components
    β”‚   β”œβ”€β”€ Head
    β”‚   β”œβ”€β”€ Heading
    β”‚   └── Image
    β”œβ”€β”€ layout
    β”‚   └── index
    β”œβ”€β”€ containers
    β”‚   β”œβ”€β”€ index
    β”‚   └── 404
    β”œβ”€β”€ styles
    β”‚   β”œβ”€β”€ globalStyles
    β”‚   β”œβ”€β”€ styleUtils
    β”‚   β”œβ”€β”€ theme
    β”‚   └── typography
    └── templates

About

License:MIT License


Languages

Language:TypeScript 98.4%Language:JavaScript 1.3%Language:CSS 0.2%