nickperkins / opine

Opine is a very simple comments api for a static blog site that runs on Cloudflare Workers

Home Page:https://nickperkins.au/code/comment-api-cloudflare-d1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opine

This is a minimal api for comments on a static blog, built to run on Cloudflare Workers. This is a proof of concept that is not suitable for production.

This has been inspired by the Hono blog example

Features

  • Data stored in Cloudflare D1
  • Written in Typescript, using Hono framework

Usage

Install

yarn install

Run migrations (Local Development)

yarn dev-migrate

Local Development

yarn dev

Test

yarn test

Deploy

yarn deploy

Run migrations

yarn migrate

About

Opine is a very simple comments api for a static blog site that runs on Cloudflare Workers

https://nickperkins.au/code/comment-api-cloudflare-d1/


Languages

Language:TypeScript 94.0%Language:JavaScript 6.0%