Build a category listing for overall navigation of your store. You will gain knowledge of APIs relevant to loading categories and their related information along with an overall understanding of how to navigate the catalog structure.
Find the “PartialViewController” under the Controllers folder in the website project. The Method CategoryNavigation() Renders the actionview “categoryNavigation.cshtml” as requested with the following line in “Layout.cshtml”.
Find categories and sub categories using the CatalogLibrary and map them into the categorNavigationViewModel.Categories list. Map categories recursively. Add link to the categoryViewModel.Url that points to ‘/store/category?category=categoryId’
Bonus
Try setting up a new site by modifying Sites.masterclass.config adding a new site under the sites node. Create the matching content node in Sitecore. Create a new store, assign a domain to the new site. Set up a new catalog and new categories
Visit the new site. Does the category navigation change?
More information can be found on the documentation site: