Skip to content

Commit

Permalink
Server side - Basic Giraffe
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacabraham committed Dec 19, 2023
1 parent 21e62db commit 90b4fcb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/Program.fs
@@ -0,0 +1,9 @@
open Microsoft.Extensions.Configuration
open Giraffe
open Microsoft.AspNetCore.Builder

let b = WebApplication.CreateBuilder()
b.Services.AddGiraffe() |> ignore
let app = b.Build()
app.UseGiraffe(text "Hello world")
app.Run()
16 changes: 16 additions & 0 deletions server/server.fsproj
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="Program.fs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Giraffe" Version="6.2.0" />
</ItemGroup>

</Project>

0 comments on commit 90b4fcb

Please sign in to comment.