jeastham1993 / serverless-cloudflare

Playing around with CloudFlare Workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Workers + Rust

Sample repository playing around with Rust + CloudFlare Workers. Currently, there are 2 examples:

Axum + Postgres

LINK

An example of using the Axum web framework inside a CloudFlare worker, connecting to a Postgres databases. To use this example, you will need to set 4 environment variables against your CloudFlare worker:

  • DB_HOST
  • DB_NAME
  • DB_USER
  • DB_PASS

Router + KV

LINK

A CloudFlare native approach, using the worker::Router for web routing and KV as a very simple key-value database.

About

Playing around with CloudFlare Workers


Languages

Language:Rust 83.2%Language:JavaScript 8.0%Language:TypeScript 6.6%Language:HTML 2.2%