mika-f / cloudflare-workers-typescript-template

Cloudflare Workers TypeScript Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Workers TypeScript Template

A template project for Cloudflare Workers that written in TypeScript.
This repository also contains configurations for various formatters and linters.

Getting Started

This template is meant to be used with Wrangler or GitHub Template Repository.
If you generate using Wrangler, run this command:

$ wrangler generate my-typescript-worker https://github.com/mika-f/cloudflare-workers-typescript-template.git

If you want to use this repository as template repository, fork and configure as template repository.
And create a new repository from GitHub and select it.

Development

Run yarn start command and edit src/index.ts.

Testing

Edit the files in the __tests__ directory and run yarn test command.

License

Apache 2.0 OR MIT by @6jz

About

Cloudflare Workers TypeScript Template

License:Apache License 2.0


Languages

Language:JavaScript 91.4%Language:TypeScript 8.6%