Skip to content

Commit

Permalink
docs: update tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Sep 12, 2024
1 parent d50685c commit f721ce8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/content/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The [Cloudflare](https://cloudflare.com) adapter outputs your app to run on [Clo

### Deno

The [Deno](https://deno.com) adapter outputs your app to run on [Deno Deploy](https://deno.com/deploy).
The [Deno](https://deno.com) adapter outputs your app to run on [Deno Deploy](https://deno.com/deploy). You do not have to use Deno to build your app to use this adapter.

- Function runs on Deno.
- Static files are served with [`@std/http/file-server`](https://jsr.io/@std/http).
Expand Down
18 changes: 14 additions & 4 deletions apps/docs/src/content/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
# Tutorial

The following documentation covers the basics of creating a site and all of the features domco provides in addition to Vite and Hono. See the [Vite](https://vitejs.dev/) or [Hono](https://hono.dev) documentation for more information and configuration options.

## Create a new project

To get started, you'll need to have [Node.js](https://nodejs.org) and npm installed on your computer.
To get started, you'll need to have [Node](https://nodejs.org), [Bun](https://bun.sh/), or [Deno](https://deno.com) or installed on your computer. Then run the `create-domco` script to create a new project. If you already have an existing Vite project check out the [migration instructions](/migrate).

Run this command in your terminal.
### Node

```bash
npm create domco@latest
```

This command creates files in your project's directory instead of having to manually set up the plugin with Vite.
### Bun

The following documentation covers the basics of creating a site and all of the features domco provides in addition to Vite and Hono. See the [Vite](https://vitejs.dev/) or [Hono](https://hono.dev) documentation for more information and configuration options.
```bash
bun create domco@latest
```

### Deno

```bash
deno run -A npm:create-domco@latest
```

## +page

Expand Down

0 comments on commit f721ce8

Please sign in to comment.