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

https://github.com/mys1024/starter-deno-web

A Deno web project stater template.
https://github.com/mys1024/starter-deno-web

api backend deno javascript jwt mongodb starter template typescript web

Last synced: 2 months ago
JSON representation

A Deno web project stater template.

Awesome Lists containing this project

README

          

# starter-deno-web

A [Deno](https://deno.land/) web project stater template.

## Features

- [Oak](https://oakserver.github.io/oak/), with middleware Logger, CORS and JWT

## Environment variables

The following are configurable environment variables:

```shell
# timezone offset in minutes, default: 0.
TIMEZONE_OFFSET = ""

# base64 encoded ES256 key pair for JWT.
# If you need to use the `jwt()` middleware, please run `deno task keygen` to generate them.
JWT_KEY_PUBLIC = ""
JWT_KEY_PRIVATE = ""
```

You can create an file named `.env` in the root directory of this project, and set these environment variables in it. `src/config.ts` will load environment variables from the file `.env`.

## License

[MIT](./LICENSE) License © 2024-PRESENT mys1024