https://github.com/queen-raae/gatsby-fall-camp-2021
Demo from Gatsby Fall Camp 2021
https://github.com/queen-raae/gatsby-fall-camp-2021
Last synced: 3 months ago
JSON representation
Demo from Gatsby Fall Camp 2021
- Host: GitHub
- URL: https://github.com/queen-raae/gatsby-fall-camp-2021
- Owner: queen-raae
- Created: 2021-09-10T11:01:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-16T16:32:54.000Z (over 3 years ago)
- Last Synced: 2025-01-14T05:42:16.379Z (5 months ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gatsby Fall Camp 2021 Demo
This is the demo code from my talk about Gatsby Functions at [Gatsby Fall Camp 2021](https://queen.raae.codes/gatsby-fall-camp-2021/).
It demos how to charge money for time traveling using Stripe, and then letting the travellers know if they found the princess or not using SendGrid.
Who is this princess, why time travelling? Sign up for [the backstory](http://queen.raae.codes/ruby/) via email.
Get notified about up-coming plugins, workshops, streams and future articles to help you get the most out of Gatsby by [signing up for emails from yours truly](https://queen.raae.codes/emails/).
## Development
1. **Add env variables**
Copy/paste `.env.example` into `.env.development` and add your own values.
1. **Start developing.**
Navigate into your new site’s directory and start it up.
```shell
npm run develop
```1. **Open the code and start customizing!**
Your site is now running at http://localhost:8000!
Edit `src/pages/index.js` to change the form, and `src/pages/sucess` to change the sucess page.
The functions are running at
- http://localhost:8000/api/stripe-webook
- http://localhost:8000/api/time-travelEdit `src/api/stripe-webhook.js` and/or `src/api/time-travel.js`to change them.
1. **Learn more from Gatsby**
- [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Tutorials](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Guides](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)