This example project demonstrates building desktop app using Deno server and Web frontend.
-
Prepare your frontend assets
Place your frontend files, including the
index.html
, into thestatic-assets
directory. -
Generate embedded-assets TypeScript files
We need to convert the static assets into TypeScript files that can be embedded into the Deno binary at compile time. Run the command below from the project's root directory:
deno run --unstable --allow-all ./embedder.ts build
-
Compile the Deno application
Compile your application into an executable binary using the following command:
deno compile --output deno-chrome-example --allow-read --allow-net src/main.ts
-
Deploy the application
After compiling the application, you can transfer the deno-chrome-example binary to another system. Running the binary will open a full-screen Chrome window displaying your index.html.