Skip to content

tsoniclang/express-examples

Repository files navigation

express-examples

Examples for @tsonic/express (Express-style APIs on ASP.NET Core).

Note: @tsonic/express is a typings package; the runtime is express.dll. This repo vendors libs/express.dll and references it via tsonic.workspace.json.

Setup

npm install

Run an example

cd packages/hello-world
npm run dev

Examples

  • hello-world: minimal GET / + listen()
  • middleware: use() + next() + headers
  • router-mount: Router() + mount at /api
  • error-handling: throwing + error middleware
  • body-parsers: express.json() + express.urlencoded()
  • static-files: Response.sendFile() serving from disk

About

TSonic Express Examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors