deno-vite-steam/README.md
2024-09-26 18:57:17 +01:00

46 lines
1.1 KiB
Markdown

# Deno and React.js
## A dinosaur app built with React, Vite and TypeScript
This demo is a simple React app. It uses Vite as the local server, and is
written in TypeScript. The app is a simple dinosaur app that displays a list of
dinosaurs and allows the user to add a new dinosaur to the list.
You can follow along with the tutorial on the
[Deno Docs](https://docs.deno.com/runtime/tutorials/how_to_with_npm/react/).
## Run the app
To run the app, you need to have [Deno](https://deno.land/) installed on your
machine. You can install Deno by running the following command, or following the
instructions in the [Deno docs](https://docs.deno.com/runtime/):
```bash
curl -fsSL https://deno.land/install.sh | sh
```
Once you have Deno installed, you can run the app with the following command:
```bash
deno task dev
```
## Build the app
To build the app, you can run the following command:
```bash
deno task build
```
## Serve the app with Deno
To serve the app with Deno, you can run the following command:
```bash
deno task serve
```
![Deno logo](https://docs.deno.com/img/logo.svg)  💚
![Vue logo by Evan Yu](./src/assets/react.svg)