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.
- Host: GitHub
- URL: https://github.com/datashaman/hono-template
- Owner: datashaman
- License: mit
- Created: 2024-08-29T03:03:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T08:19:25.000Z (over 1 year ago)
- Last Synced: 2025-02-06T05:28:46.608Z (over 1 year ago)
- Topics: cloudflare-worker, hono
- Language: JavaScript
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```