Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m0nica/gatsby-solar-system-workshop
This space-themed workshop covers the fundamentals of developing fast sites with Gatsby, a React framework, and dive deep into the building blocks you’ll need to build your own custom Gatsby sites.
https://github.com/m0nica/gatsby-solar-system-workshop
gatsby gatsbyjs jamstack react workshop
Last synced: about 2 months ago
JSON representation
This space-themed workshop covers the fundamentals of developing fast sites with Gatsby, a React framework, and dive deep into the building blocks you’ll need to build your own custom Gatsby sites.
- Host: GitHub
- URL: https://github.com/m0nica/gatsby-solar-system-workshop
- Owner: M0nica
- Created: 2021-09-13T22:56:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-07T17:49:17.000Z (over 3 years ago)
- Last Synced: 2024-05-02T05:39:14.618Z (8 months ago)
- Topics: gatsby, gatsbyjs, jamstack, react, workshop
- Language: JavaScript
- Homepage: https://www.monica.dev/jamstackconf21
- Size: 17 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Gatsby Workshop
This space-themed workshop covers the fundamentals of developing fast, accessible sites with Gatsby, a React framework, and dive deep into the building blocks you’ll need to build your own custom Gatsby sites.
After completing a mix of lectures and exercises you’ll be able to build a Gatsby site from the ground up and deploy it live. In particular, you’ll learn the ins and outs of creating Gatsby sites, from selecting a starter or theme, using GraphQL to generate the data layer, making Markdown content interactive with MDX, deploying your site, and more!
## Prerequisites
- This workshop is for JavaScript developers who haven't had extensive experience with Gatsby and want a deeper understanding of Gatsby.
## System Requirements
- [git][git] v2 or greater
- [NodeJS][node] v12 or greater
- [npm][npm] v6 or greaterAll of these must be available in your `PATH`. To verify things are set up
properly, you can run this:```shell
git --version
node --version
npm --version
```If you have trouble with any of these, learn more about the PATH environment
variable and how to fix it here for [windows][win-path] or
[mac/linux][mac-path].## Setup
After you've made sure to have the correct things (and versions) installed, you
should be able to just run a few commands to get set up:```
git clone https://github.com/m0nica/gatsby-solar-system.git
cd site
npm install
```or
```
git clone https://github.com/m0nica/gatsby-solar-system.git
cd site
yarn
```
## Running the appTo get the app up and running (and really see if it worked), run:
```shell
cd site
npm run start
```or
```shell
cd site
yarn start
```This should start up the site locally in your browser at http://localhost:8000/.
## Preview Site
- initial site: https://gatsbysolarsystem.netlify.app/#
- final site (After exercise 9): https://deploy-preview-10--gatsbysolarsystem.netlify.app/.If you encounter the following error
```
npm ERR! missing script: develop
```
that likely means you are in the root of the directory and need to `cd` into the `site` folder.### Exercises
The exercises each have a branch associated with them. You can find the exercises under `instructions/` in files labelled like `01_instructions.md`. To get the latest working code for an exercise check out the exercise solution branch.
- [00 • Running a Gatsby Application Locally](instructions/00_instructions.md)
- [01 • Customize Gatsby Site Information](instructions/01_instructions.md)
- [02 • Make Navigation and Footer Data Dynamic](instructions/02_instructions.md)
- [03 • Create a new page in Gatsby](instructions/03_instructions.md)
- [04 • Add planet data to the graphql server](instructions/04_instructions.md)
- [05 • Programmatically Create Page for Each Planet](instructions/05_instructions.md)
- [06 • Add Links to Card Component](instructions/06_instructions.md)
- [07 • Add Dynamic Links to Navigation](instructions/07_instructions.md)
- [08 • Add Plaintext Content to Planet Page](instructions/08_instructions.md)
- [09 • Add MDX (React Components) to Planet Page](instructions/09_instructions.md)### Workflow
- Checkout the main branch
- Read through the instructions in `site/INSTRUCTIONS` and complete one set of instructions at a time
- Start exercise
- Go through every mentioned file and follow the instructions
- We all come back together
- I go through the solution and answer questions
- Move on to the next exercise.
- Repeat.### View Slides
- At www.monica.dev/jamstackconf21
[npm]: https://www.npmjs.com/
[node]: https://nodejs.org
[git]: https://git-scm.com/
[win-path]: https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/
[mac-path]: http://stackoverflow.com/a/24322978/971592## Credits
- Planet Images are from https://www.vecteezy.com
- Built ontop of https://github.com/gatsbyjs/gatsby-starter-default## Disclaimers
The purpose of this project is to teach Gatsby, therefore the planet facts may or may not be accurate.