Welcome to the Deno template for Remix!
For more, check out the Remix docs.
npx create-remix@latest --template deno
Read about how we recommend to manage dependencies for Remix projects using Deno.
npm
to install NPM packagesnpm install react
import { useState } from "react";
import { copy } from "https://deno.land/[email protected]/streams/conversion.ts";
From your terminal:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
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!