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.
- Host: GitHub
- URL: https://github.com/mys1024/starter-deno-web
- Owner: mys1024
- License: mit
- Created: 2023-07-30T06:14:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T04:21:13.000Z (over 2 years ago)
- Last Synced: 2025-02-23T04:07:05.679Z (over 1 year ago)
- Topics: api, backend, deno, javascript, jwt, mongodb, starter, template, typescript, web
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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