Docs > Getting Started >

Sample Projects

Complete Sample Sites

The complete sample sites are the best way to get a feel for how a Cofoundry site works and what the code looks like.


A simple website implementing content management and some framework features including:

  • Startup registration
  • Page templates
  • Custom page block types
  • Image content
  • Two custom entities - blog post and category
  • Querying and display a list of blog posts
  • A blog post custom entity details page
  • A simple contact form
  • Email notifications & email templating
  • Custom error pages
  • Configuration settings

View on GitHub


An example demonstrating how to use Cofoundry to create a SPA (Single Page Application) with WebApi endpoints as well as demonstrating some advanced Cofoundry features.

The application is also separated into two projects demonstrating an example of how you might structure your domain layer to keep this layer separate from your web layer.

  • Startup registration
  • Route registration
  • Web Api and use of IApiResponseHelper
  • Structuring commands and queries using CQS
  • Multiple related custom entities - Cats, Breeds and Features
  • A member area with a sign-up and login process
  • Using an entity framework DbContext to represent custom database tables
  • Executing stored procedures using IEntityFrameworkSqlExecutor
  • Integrating custom entity data with entity framework data access
  • Using the auto-updater to run sql scripts
  • Email notifications & Email Templating
  • Registering services with the DI container

View on GitHub

Individual Samples

These samples focus on specific areas of functionality in Cofoundry.


A bare website showing various examples of creating content editable menus:

  • Simple Menu
  • Nested Menu
  • Multi-level Menu

View on GitHub


A bare website showing various examples of how to implement page block types including

  • Using data model attributes
  • Querying for data
  • Managing related entities and versions

View on GitHub