Boilerplate utilizing Statiq and Kentico Kontent to provide a starting point in the Jamstack world for .NET developers.
- Click the "Use this template" button to create your own repository from this template.
dotnet run -- preview
🎊🎉 Visit http://localhost:5080 and start exploring the code base!
By default, the content is loaded from a shared Kentico Kontent project. If you want to use your own clone of the project so that you can customize it and experiment with Kontent, continue to the next section.
-
Go to app.kontent.ai and create an empty project
-
Go to the "Project Settings", select API keys and copy the following keys for further reference
- Project ID
- Management API key
-
Use the Template Manager UI for importing the content from
kontent-backup.zip
file and API keys from previous step. Check Publish language variants after import option before import.Alternatively, you can use the Kontent Backup Manager and import data to the newly created project from
content.zip
file via command line:npm i -g @kentico/kontent-backup-manager kbm --action=restore --projectId=<Project ID> --apiKey=<Management API key> --zipFilename=content
Go to your Kontent project and publish all the imported items.
-
Map the codebase to the data source
- adjust the
ProjectId
property in appsettings.json with your project ID.
- adjust the
🚀 You are now ready to use the site with your own Kentico Kontent project as data source on http://localhost:5080! 🚀
- Kontent Model Generator for generating strongly-typed models from Kontent model.
- Kontent.Statiq module for simple data loading from Kontent to strongly-typed models
- Sass initial styles for easier style including reset.css
- Razor template engine setup with simple layout
All of the information about boilerplate creation and the content modeling in Kentico Kontent have been written up on the blog post Jamstack on .NET - From zero to hero with Statiq and Kontent.
See more complex sample application: Kentico Kontent Statiq - Lumen Starter