To start using the Agility CMS & .NET Starter, sign up for a FREE account and create a new Instance using the DotNet Starter.
Introduction to .NET and Agility CMS
- Uses the latest version of .NET, with greatly improved performance across many components, Language improvements to C# and F#, and much more.
- Supports full Layout Management
- Supports Preview Mode
- Includes an easy-to-use CLI tool that helps you download the Content Models from your Agility CMS instance, and generates the classes of the Content Models for you.
This starter uses Tailwind CSS, a simple and lightweight utility-first CSS framework packed with classes that can be composed to build any design, directly in your markup.
It also comes equipped with Autoprefixer, a plugin which use the data based on current browser popularity and property support to apply CSS prefixes for you.
This project is using Node.js to generate the tailwind css classes.
🚨 Before you dive into the code, it's important that you have the latest version of the .NET SDK installed on your machine (>=v8.0), as the project will not run without this.
- cd into the
Agility.NET.AgilityCLI
directory. - Rename the
App.config.example
file toApp.config
. - Overwrite the values in the
App.config
file with the values from the API Keys page in Agility Settings. - Run
dotnet run update preview
to download the Content Models from your Agility CMS instance, and generate the classes of the Content Models for you.
- cd into the
Agility.NET.Starter
directory. - Rename the
appsetting.json.example
file toappsettings.json
. - Overwrite the values in the
appsettings.json
file with the credentials from the API Keys page in Agility Settings.
dotnet build
=> Builds the websitedotnet run
=> Builds & runs the websitenpm run dev & dotnet watch
=> Builds and runs the site in Watch mode, so changes are reflected in the browser immediately.dotnet clean
=> Cleans the build outputs of the site
-
Create an Web App (server) to host your application by clicking
Azure Deploy
button below:
-
Deploy your source to Web App by following the steps here How to Deploy the Dotnet Starter to Azure
If you have feedback or questions about this starter, please use the Github Issues on this repo, join our Community Slack Channel.