Step 1: Set Up Parent Account
The video below walks through the instructions for this step.
In this section, you will be populating your parent account with test data, developing a website locally on your computer, and deploying your code to production.
Log into your account and click on “Your Dashboard” in the top-right corner. From your dashboard you can see the full Yext platform with all available products listed in the left-hand navigation menu, including Knowledge Graph and Pages.
Now that you have familiarized yourself with your parent account, let’s get started with website development.
Pages Local Development
To get started with Pages local development, open up your terminal and run the following command. This will establish a connection to your Yext account.
yext init REPLACE_ME_ACCOUNT_ID
NoteYou can find your account ID in the URL of your Yext account/s/[[account ID]]/...
.Next, run the following command:
yext pages new
From the prompts, select the following:
- Create a new repo or link an existing GitHub repo?
Create a new repo
- Which starter repository?
Fleet SMB Starter
- What would you like to call it?
fleet-smb-starter
- Would you like to setup a remote GitHub repository?
Yes
- Refer to GitHub’s CLI quick-start guide for login information.
- Would you like to install dependencies?
Yes
- Would you like to populate your account with seed data?
Yes
- This will add test data to the Knowledge Graph in your parent account, which will be used to power your site.
- Create a new repo or link an existing GitHub repo?
Run the following commands to begin local development!
cd fleet-smb-starter npm run dev
(Optional) Briefly familiarize yourself with the repo by examining the
src/templates
folder; each of these templates corresponds to a page (or set of pages) in your site (refer to our Templates reference doc for more information).
Deploy to Production
Once you’ve verified your site looks good, you can deploy it to production by following the Initial Deploy training unit.