A third-party script demo
MIT License
See the preview: https://gatsbythirdpartyscripts.gatsbyjs.io/
See the Partytown preview https://gatsbythirdpartyscripts-featpartytown.gtsb.io/
Read the post on the Gatsby Blog:
This repo is based on Gatsby's minimal demo
https://gatsbydemominimal.gatsbyjs.io/
Clone this repo.
Use your terminal to clone this repository.
git clone https://github.com/gatsby-inc/gatsby-demo-minimal.git
Install dependencies.
Navigate into your new sites directory and install the dependencies.
cd gatsby-demo-minimal
npm install
Start developing.
Start the development server.
npm run develop
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 gatsby-demo-minimal
directory in your code editor of choice and edit src/pages/index.js
. Save your changes and the browser will update in real time!
Deploy this demo with one click on Gatsby Cloud:
A quick look at the top-level files and directories you'll see in this Gatsby demo.
.
node_modules
src
.gitignore
|-- gatsby-config.js
LICENSE
package-lock.json
package.json
README.md
/node_modules
: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
/src
: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. src
is a convention for source code.
.gitignore
: This file tells git which files it should not track / not maintain a version history for.
gatsby-config.js
: This files defines your sites metadata, plugins, and other general configuration.
package-lock.json
(See package.json
below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You wont change this file directly).
package.json
: A manifest file for Node.js projects, which includes things like metadata (the projects name, author, etc). This manifest is how npm knows which packages to install for your project.
README.md
: A text file containing useful reference information about your project.
Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:
For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.
To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.
Build, Deploy, and Host On The Only Cloud Built For Gatsby
Gatsby Cloud is an end-to-end cloud platform specifically built for the Gatsby framework that combines a modern developer experience with an optimized, global edge network.