Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmartmonkey/create-hono-cloudflare-workers-rest-api
Lightweight Honojs rest api template for side project or micro Saas on cloudflare workers
https://github.com/thesmartmonkey/create-hono-cloudflare-workers-rest-api
bun cloudflare-workers hono rest-api typescript
Last synced: 12 days ago
JSON representation
Lightweight Honojs rest api template for side project or micro Saas on cloudflare workers
- Host: GitHub
- URL: https://github.com/thesmartmonkey/create-hono-cloudflare-workers-rest-api
- Owner: TheSmartMonkey
- License: mit
- Created: 2024-04-13T15:23:46.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-03T23:02:29.000Z (6 months ago)
- Last Synced: 2024-05-30T02:21:31.555Z (5 months ago)
- Topics: bun, cloudflare-workers, hono, rest-api, typescript
- Language: TypeScript
- Homepage:
- Size: 321 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# create-hono-cloudflare-workers-rest-api
๐ Welcome to [HonoJS](https://hono.dev/) REST API Template ๐
## What is in this template ?
๐ ๏ธ Minimal Setup, Maximum Power
โ๏ธ Middleware Magic
๐ JWT token Authentication
โ Route validation with [zod](https://zod.dev/)
๐งช Testing with [jest](https://jestjs.io/fr/)
๐ฆ Beautiful code with [eslint](https://eslint.org/) and [prettier](https://prettier.io/)
## Getting started
```sh
npx degit https://github.com/TheSmartMonkey/create-hono-cloudflare-workers-rest-api backend
```Create a `wrangler.toml` based on `wrangler.default.toml`
Install dependancies
```sh
bun i
```Start coding ๐งโ๐ป
```sh
bun start
```Deploy to cloudflare ๐
```sh
bun run deploy
```## More commands
Fix you code to make it Beautiful ๐ฆ
```sh
bun run fix
```Test you code ๐งช
```sh
bun run test
```If you want more infos
```sh
bun run
```if you want to encode a jwt token : https://10015.io/tools/jwt-encoder-decoder
Happy coding ! ๐