An open API service indexing awesome lists of open source software.

https://github.com/datashaman/hono-template

Template repository for a Hono project.
https://github.com/datashaman/hono-template

cloudflare-worker hono

Last synced: 5 months ago
JSON representation

Template repository for a Hono project.

Awesome Lists containing this project

README

          

# hono-template

## Install
```
yarn
```

## Configure
```
cp .example.env .env
```

You will need a token to deploy to Cloudflare Workers. To create a token:

1. From the [Cloudflare dashboard](https://dash.cloudflare.com/profile/api-tokens/), go to **My Profile > API Tokens**.
2. Select **Create Token**.
3. Select the **Edit Cloudflare Workers** template, select **Account** and **Zone**, and click **Continue to Summary**.
4. Read the token summary and click **Create Token**.
5. Copy the token and paste into `.env` as `CLOUDFLARE_API_TOKEN`.

## Develop
```
yarn dev
```

### Test
```
yarn test
```

## Deploy
```
yarn deploy
```