GithubHelp home page GithubHelp logo

kontent-ai / boilerplate-statiq-net Goto Github PK

View Code? Open in Web Editor NEW
13.0 21.0 2.0 189 KB

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

Home Page: https://kontent-ai.github.io/boilerplate-statiq-net

License: MIT License

C# 90.09% HTML 1.87% SCSS 6.85% PowerShell 0.53% Shell 0.67%
boilerplate dotnet kontent statiq jamstack static-site-generator razor hacktoberfest kontent-ai-sample

boilerplate-statiq-net's Introduction

Statiq boilerplate for Kontent.ai

Build and publish Live Demo

Boilerplate utilizing Statiq and Kontent.ai 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 Kontent.ai 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

Application itself is configured to use shared alvawys avalable Kontent-ai project.

If you want to generate the clone of the project in order to be able to edit the content, use Sample site generator.

  1. Use "CREATE A NEW SAMPLE PROJECT" for generating the project.
  2. Access the project listing on Kontent.ai application](https://app.kontent.ai/projects)
  3. Select newly generated project (its name is about to be Sample Project M/DD/YYYY, H:MM:SS AM/PM).
  4. Enter Project settings -> API keys and copy the Project ID.
  5. Adjust appsettings.json, Tools/GenerateModels.ps1, and Tools/GenerateModels.sh by using your project ID.
  6. Rebuild the project and run dotnet run -- preview.

๐Ÿš€ You are now ready to use the site with your own Kontent.ai project as data source on http://localhost:5080! ๐Ÿš€

Features

  • Kontent.ai Model Generator for generating strongly-typed models from Kontent.ai model.
  • Kontent.Statiq module for simple data loading from Kontent.ai 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 Kontent.ai have been written up on the blog post Jamstack on .NET - From zero to hero with Statiq and Kontent.ai.

boilerplate-statiq-net's People

Contributors

kontent-ai-bot avatar simply007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

makma ondrabus

boilerplate-statiq-net's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.