Creating a project
After you have successfully created accounts on Sanity.io, GitHub, and Netlify, we can begin with the project creation, using the Sanity.io Blog with Gatsby starter project.
The Uniform Resource Locator (URL) for Sanity.io project creation is https://www.sanity.io/create.
Click on the Create project link, as shown in the following screenshot:
There are three steps to complete for creating our very first project, as follows:
- Log in to your Sanity.io account using one of the aforementioned methods, and add the Project title. Sanity needs this section to create a new Sanity project for you. We can set the Project title as <
Your Name> hands-on Jamstack
. The following screenshot shows an example of this:Sanity will create a repository for the project. Click the Sign In button to connect to your GitHub account and rename the repository as your-name-hands-on-Jamstack.
Note
You cannot have any spaces in the name.
Optionally, you may set it as a private repository. On each git push to the remote repository, the website will be automatically redeployed, as illustrated in the following screenshot:
Sanity will automatically deploy your application to Netlify and make it available to the web.
- Click the Connect button to connect to your Netlify account, and we are ready to go! You should see the following message:
- Now, press the Create project button, as illustrated in the following screenshot, and in a short amount of time the project will be set up:
Once the project is created, Sanity will deploy two web applications to Netlify.
The first web application is the frontend website driven by Gatsby that connects to the Sanity-hosted backend.
The URL structure format is as follows:
https://website-name.netlify.com
You can see that it takes the form of the project name plus the Netlify domain.
The other web application is Sanity Studio, where we can manage the content. The URL structure format is as follows:
https://website-name-studio.netlify.com
You can see that it takes the form of project name, a dash, the word studio
, and then the Netlify domain.
Let's start exploring Sanity.