Skip to content

gvidasja/denoapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

denoapp

To add a UI controller with bundler:

  • init deno.jsonc
deno run --allow-read @jsr:@gvidasja/denoapp/init
  • use UI middleware
import 'jsr:@std/dotenv/load.ts'
import { Application } from 'jsr:@oak/oak'
import { uiMiddleware } from 'jsr:@gvidasja/denoapp'

const app = new Application()
  .use(
    uiMiddleware({
      bundler: {
        entryPoint: import.meta.resolve('./static/main.tsx'),
        indexHTML: import.meta.resolve('./static/index.html'),
      },
    })
  )

await app.listen({ port: 3000 })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published