Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Lightweight Honojs rest api template for side project or micro Saas on cloudflare workers

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 ! ๐ŸŽ‰