Skip to content

zippo-lighter/vigilant-octo-eureka

Repository files navigation

Statiq boilerplate for Kontent

Build and publish Live Demo

Boilerplate utilizing Statiq and Kentico Kontent to provide a starting point in the Jamstack world for .NET developers.

Screenshot

Get started

Requirements

Clone the codebase

  1. Click the "Use this template" button to create your own repository from this template.

Running locally

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.

Create a content source

  1. Go to app.kontent.ai and create an empty project

  2. Go to the "Project Settings", select API keys and copy the following keys for further reference

    • Project ID
    • Management API key
  3. 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.

  4. Map the codebase to the data source

🚀 You are now ready to use the site with your own Kentico Kontent project as data source on http://localhost:5080! 🚀

Features

  • 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

How it's build

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.

Resources

See more complex sample application: Kentico Kontent Statiq - Lumen Starter

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published