/cf-worker-template

☁ Advanced typescript template for Cloudflare Workers. TypeScript + JWT Authentication + zod validation + kysely ORM

Primary LanguageTypeScript

cf-worker-template

☁ Simple typescript template for Cloudflare Workers

Project Structure 🌳

    - /src
        - /core (classes and utilities)
        - /handlers (handlers, ex: load every route)
        - /routes (folder that stores every route)
        - /types (folder that stores typescript types)

Installation ⬇

  • Install packages
    npm i
  • Build the worker
    npm run build
  • Start the worker
    npm run start