my-deno-app

Stars
7

Remix + Deno

Welcome to the Deno template for Remix!

For more, check out the Remix docs.

Install

npx create-remix@latest --template deno

Managing dependencies

Read about how we recommend to manage dependencies for Remix projects using Deno.

  • You should use npm to install NPM packages
npm install react
import { useState } from "react";
  • You may use inlined URL imports or deps.ts for Deno modules.
import { copy } from "https://deno.land/[email protected]/streams/conversion.ts";

Development

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Production

First, build your app for production:

npm run build

Then run the app in production mode:

npm start

Deployment

Building the Deno app (npm run build) results in two outputs:

  • build/ (server bundle)
  • public/build/ (browser bundle)

You can deploy these bundles to a host of your choice, just make sure it runs Deno!