Skip to content

Sample .NET Core Razor Pages project using the Kentico Kontent Delivery .NET SDK to retrieve content

License

Notifications You must be signed in to change notification settings

mberry1989/kontent-sample-app-razorpages

 
 

Repository files navigation

Build status

Kentico Kontent sample ASP.NET Core Razor Pages web application

Sample .NET Core Razor Pages project using the Kentico Kontent Delivery .NET SDK to retrieve content.

This application is meant for use with the Dancing Goat sample project within Kentico Kontent. The project contains the home page and article content for Dancing Goat – an imaginary chain of coffee shops. If you don't have your own Sample Project, any administrator of a Kentico Kontent subscription can generate one.

Application setup

Running the application

To run the app:

  1. Clone the app repository with your favorite GIT client
    1. For instance, you can use Visual Studio, Visual Studio Code, GitHub Desktop, etc.
    2. Alternatively, you can download the repo as a ZIP file, however, this will not adapt line endings in downloaded files to your platform (Windows, Unix).
  2. Open the solution in Visual Studio (using the kontent-sample-app-razorpages.sln file).
  3. Run the app.

Connecting to your sample project

If you already have a Kentico Kontent account, you can connect this sample Razor Pages application to your version of the Sample project.

  1. In Kentico Kontent, choose Project settings from the app menu.

  2. Under Development, choose API keys and copy the Project ID.

  3. Open the \kontent-sample-app-razorpages\appsettings.json file.

  4. Use the values from your Kentico Kontent project in the appsettings.json file:

    • Project ID: Insert your project ID into the ProjectId application setting.
    {
    "DeliveryOptions": {
      "ProjectId": "<your Kontent project ID>"
    },
  }
  1. Save the changes.
  2. Run the application.

Content administration

  1. Navigate to https://app.kontent.ai in your browser.
  2. Sign in with your credentials.
  3. Manage content in the content administration interface of your sample project.

You can learn more about content editing with Kentico Kontent in our Documentation.

Content delivery

You can retrieve content either through the Kentico Kontent Delivery SDK or the Kentico Kotent Delivery API.

Analytics

About

Sample .NET Core Razor Pages project using the Kentico Kontent Delivery .NET SDK to retrieve content

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 42.2%
  • Less 24.4%
  • CSS 20.2%
  • C# 8.4%
  • HTML 4.8%