https://github.com/kontent-ai/sample-app-razorpages
Sample .NET Core Razor Pages project using the Kontent.ai Delivery .NET SDK to retrieve content
https://github.com/kontent-ai/sample-app-razorpages
dot-net-6 dotnet-6 dotnet6 kontent-ai kontent-ai-sample net-core net6 net60 razor-pages sample-app sample-application
Last synced: 5 months ago
JSON representation
Sample .NET Core Razor Pages project using the Kontent.ai Delivery .NET SDK to retrieve content
- Host: GitHub
- URL: https://github.com/kontent-ai/sample-app-razorpages
- Owner: kontent-ai
- License: mit
- Created: 2019-10-03T12:51:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-18T13:46:32.000Z (10 months ago)
- Last Synced: 2025-04-07T13:11:15.525Z (6 months ago)
- Topics: dot-net-6, dotnet-6, dotnet6, kontent-ai, kontent-ai-sample, net-core, net6, net60, razor-pages, sample-app, sample-application
- Language: JavaScript
- Homepage: https://kontent.ai
- Size: 1.06 MB
- Stars: 6
- Watchers: 17
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
> [!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](https://github.com/kontent-ai/data-ops) tool by following the instructions provided in our [Dancing Goat repository](https://github.com/kontent-ai-bot/dancing-goat).[](https://github.com/kontent-ai/kontent/sample-app-razorpages/actions/workflows/integrate.yml)
# Kontent.ai sample ASP.NET Core Razor Pages web application
Sample .NET Core Razor Pages project using the [Kontent.ai Delivery .NET SDK](https://github.com/kontent-ai/delivery-sdk-net) 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](https://app.kontent.ai/sample-site-configuration).
## Application setup
### Running the application
To run the app:
1. Clone the app repository with your favorite GIT client
1. Open the solution
1. Run the app.### Connecting to your sample project
If you already have a [Kontent.ai account](https://app.kontent.ai), 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.
1. Under Development, choose API keys and copy the Project ID.
1. Open the `\sample-app-razorpages\appsettings.json` file.
1. Use the values from your Kontent.ai project in the `appsettings.json` file:* **Project ID**: Insert your project ID into the `ProjectId` application setting.
```json
{
"DeliveryOptions": {
"ProjectId": ""
},
}
```1. Save the changes.
1. Run the application.## Content administration
1. Navigate to in your browser.
1. Sign in with your credentials.
1. Manage content in the content administration interface of your sample project.Learn more about [content editing with Kontent.ai](https://kontent.ai/learn/tutorials/write-and-collaborate/create-content/introducing-content-items).
## Content delivery
You can retrieve content either through the [Kontent.ai Delivery SDK](https://github.com/kontent-ai/delivery-sdk-net) or the [Kontent.ai Delivery API](https://kontent.ai/learn/reference/kontent-apis-overview).