[READ-ONLY] Mirror of https://github.com/andreijiroh-dev/api-servers. Monorepo for different Cloudflare Workers and Deno Deploy hosted APIs
api-servers cloudflare-workers deno-deploy golinks hackclub-arcade
README.md

@andreijiroh-dev/golinks-rewrite #

Made with Prisma Deploy to Cloudflare Workers

Made as part of Hack Club Arcade / Summer of Making 2024 ([see the scrapbook][scrapbook] for all the deets).

A rewrite of golinks Cloudflare Workers code, now with OpenAPI 3.1 powered by chanfana and Hono.

Environments #

Development #

Hack Hour/Arcade reviewer? See the docs for testing the staging environment if you don't want to mess around prod.

  1. Run yarn to install dependencies and generate Prisma client code with yarn types:prisma-client.
  2. Sign in with Cloudflare for Wrangler CLI: yarn wrangler login
  3. Run migrations to init things: yarn migrations:apply --local
  4. Run local dev server: yarn dev
  5. Once everything up, open the Swagger-generated API docs at http://localhost:35120/api/docs[1] and happy hacking.

  1. Look for port 35120 on Ports if you're on a remote dev environment, especially for GitHub Codespaces and Gitpod users. ↩︎