Skip to content

gvidasja/denoapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

denoapp

To add a UI controller with bundler:

  • init deno.jsonc
deno run --allow-read https://deno.land/x/denoapp/0.0.1/init.ts
  • use UI middleware
import 'https://deno.land/std@0.196.0/dotenv/load.ts'
import { Application } from 'https://deno.land/x/oak@v12.6.0/mod.ts'
import { uiMiddleware } from 'https://deno.land/x/denoapp/0.0.1/mod.ts'

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