Skip to content

A demo website of a fintech company called ScoreTech using Jamstack, Gatsby.js and Netlify

Notifications You must be signed in to change notification settings

kimnewzealand/kim-WD09

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

JAMStacking exercise

This exercise started with the Gatsby tutorial to create a build a static website with JavaScript, CSS and HTML.

Set up Environment

  • First install the Gatsby CLI

The Gatsby CLI tool lets you quickly create new Gatsby-powered sites and run commands for developing Gatsby sites. It is a published npm package.

npm install -g gatsby-cli

  • Create this new GitHub repo called kim-WD09.

  • Create a new site from a starter in the terminal:

gatsby new [SITE_DIRECTORY_NAME] [URL_OF_STARTER_GITHUB_REPO]

This line creates a new folder called [SITE_DIRECTORY_NAME] with a boilerplate containing the following file structure:

.
├── node_modules
├── src
├── .gitignore
├── .prettierrc
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── gatsby-ssr.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md

Alternatively leave this last URL empty to use the gatsby-starter-default.

For this exercise I reviewed the available Gatsy themes and used this Gatsby starter with Netlify CMS and Bulma styling.

  • Install the Netlify CLI to be able to deploy the site:

npm install netlify-cli -g

Gatsby Website Development

  • Change directory to the starter folder

  • Enter Gatsby development mode

gatsby develop

  • View site locally in http://localhost:8000/

  • Open code editor such as VS Code, and start coding.

Gatsby Styling

Some Gatsby sites use traditional .css stylesheets or CSS in JS libraries.

Gatsby also works with component scoped CSS for working with React.

A CSS Module

is a CSS file in which all class names and animation names are scoped locally by default.

In this starter there are starter components in the folder with a single all.sass Bulma stylesheet: .
├── src ── components

Layout components are found in the pages folder: .
├── src ── pages

Data in Gatsby

GraphQL is a query language.

With any cache issues, use a gatsby clean command.

Site Deployment

A static site can be deployed using the Netlify tutorial.

A new demo site of a fintech company, called ScoreTech, using the starte above is live on https://kim-wd09.netlify.app/

About

A demo website of a fintech company called ScoreTech using Jamstack, Gatsby.js and Netlify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.0%
  • CSS 5.0%