kontent-ai/sample-app-razorpages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This sample app relies on the Dancing Goat project, which is no longer available for creation in Kontent.ai.

If you still wish to use this project, you can import the Dancing Goat project using the Data Ops tool by following the instructions provided in our Dancing Goat repository.

Build & Test

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

This application is meant for use with the Dancing Goat sample project within Kontent.ai. 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 Kontent.ai subscription can generate one.

To run the app:

  1. Clone the app repository with your favorite GIT client
  2. Open the solution
  3. Run the app.

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

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

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

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

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

    • Project ID: Insert your project ID into the ProjectId application setting.
    {
    "DeliveryOptions": {
      "ProjectId": "<your Kontent.ai project ID>"
    },
  }
  1. Save the changes.
  2. Run the application.
  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.

Learn more about content editing with Kontent.ai.

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

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 5