GithubHelp home page GithubHelp logo

dannyallegrezza / dannyallegrezza.com Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 41.01 MB

My personal website. Built using Gastby.js

Home Page: https://dannyallegrezza.com

License: MIT License

JavaScript 93.23% Sass 6.77%

dannyallegrezza.com's Introduction

dannyallegrezza.com

Netlify Status

The third iteration of my personal website.

This project serves as an experiment with Gatsby, Netlify-CMS and the JAM stack. I'm hoping these notes will help anyone else toying around with this stack!

  • If anyone is curious, this repo showcases the end result of Gatsby tutorial. This will quickly become stale as Gatsby is experiencing rapid growth.

Installation

This project uses npm for package dependency, make sure you have it installed first.

  1. Clone/fork this repository
  2. Run npm install
  3. Run npm run develop to start up the project locally
  • To make sure packages stay up to date, periodically run npm-check u to identify safe, backwards-compatible updates.

General Gatsby/Netlify notes

How does data get loaded by Gatsby?

  • Files are sourced by gatsby-source-* plugins. Once the data has been sourced, you use a "transformer" plugin to transform your source data into other types of data.
  • There are transformers for JSON, YAML, Markdown, etc.

How are pages generated?

According to Gatsby, any component found in the pages directory will be automatically turned into a page. This can be seen by looking at the gatsby-config.js file.

There are a few different ways to create Pages in Gatsby.

  1. Using page components
    • Any React component defined in src/pages/*.js will automatically become a page.
    • EX: I create a file in src/pages/about.js and create a basic React component. Just by putting a React component in the src/pages/about.js file, you now have a page accessible at /about.
  2. Programmatically create pages from data
    • Gatsby lets you use GraphQL to query your data and map the query results to pages—all at build time.
    • Check the docs on how Markdown file names are transformed into slugs.
    • The steps to programmatically creating pages are:
      1. Query data with GraphQL
      2. Map the query results to pages

How do I extend the platform?

Whats up with the config.yml file?

Gatsby useful links

Netlify CMS

See the wiki for more info

dannyallegrezza.com's People

Contributors

dannyallegrezza avatar austingreen avatar zoltanveres avatar erquhart avatar marcobiedermann avatar renovate[bot] avatar renovate-bot avatar benaiah avatar rdela avatar kalinchernev avatar sakit0 avatar kyleamathews avatar futuregerald avatar hennessyevan avatar ekoeryanto avatar flppv avatar chmac avatar luczaki114 avatar pborreli avatar raunaqss avatar taras avatar floydnoel avatar krisaoe avatar phillc avatar terrierscript avatar

Stargazers

Kwyx& avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.