Skip to content

morgankenyon/GiraffeWebAppTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Giraffe WebApp Template

NuGet Version

An opinionated full stack .NET template for the Giraffe F# framework.

Guiding Princples

In rough order of priority

  • Choose boring tech
  • Lean into functional paradigms
    • Limit use of dependency injection
    • Limit use of classes/OO principles
  • An onion-y architecture
    • IO happens at Handler levels
    • Keep business logic pure
  • Stay close to the ASP.NET Core convention
    • If you're confused about how something works in F#/Giraffe, ideally searching for the way C#/ASP.Net Core does it should help you out.

Technology Choices

How to Install

Run the following command on in a CLI:

dotnet new install "GiraffeWebApp.Templates::*"

How to Use

When creating a template, pass the following information:

  • --name - the name for your project
  • --DbName - the name of your database
  • --DbSchema - the name of your db schema

Sample command:

dotnet new giraffewebapp --name Gitt --DbName gitt --DbSchema dev

Testing the Template Locally

To install template from source:

  • Navigate to src/content/GiraffeWebApp/
  • Run dotnet new install ./ to install template
  • Create project from template
    • dotnet new giraffewebapp --n MyProject

To uninstall template:

  • Navigate to src/content/GiraffeWebApp/
  • Run dotnet new uninstall ./

Sources

About

An opinionated .NET template for the Giraffe F# framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published