Skip to content

E2E Type Safety with .NET 8 Minimal API and TypeScript using OpenAPI

Notifications You must be signed in to change notification settings

thaitype/e2e-typesafe-dotnet-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E2E Type Safety with .NET 8 Minimal API and TypeScript

Demo screen cast:

Demo

The video is sped up 2x-4x. The actual time after the .NET code changes and affect the TypeScript code is around 10-15 seconds.

Setup

cd frontend && npm install

How to run

cd WeatherApi && dotnet watch run
cd frontend && npm run dev

Manual

Run .NET API

dotnet dev-certs https --trust
dotnet run --launch-profile https

Watch Mode (Hot Reload)

dotnet watch run --launch-profile https

This openapi.json will not be generated on watch mode. You can run the following command to generate it.

dotnet watch build  -- --configuration Gen

Ref

Other TypeScript Client Options

About

E2E Type Safety with .NET 8 Minimal API and TypeScript using OpenAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published