Skip to content

SeokminHong/edge-yacht

Repository files navigation

edge-yacht

Multiplayer Yacht game on Cloudflare Workers.

thumbnail

Features

Local development

  1. Clone the repository:
    $ git clone https://github.com/SeokminHong/edge-yacht.git
  2. (Optional) Setup a regular Auth0 application. Auth0 setting
  3. Copy environment template file and setup variables:
    $ cp packages/api/.env.template packages/api/.env.dev
  4. Install dependencies
    $ yarn install
  5. Start development server and open browser and go to http://localhost:8787
    $ yarn develop

Project Structure

This project uses Yarn workspaces to organize APIs, frontends, and shared interfaces.

packages/api

A worker API that runs on Cloudflare Workers. It handles authentication, authorization, making sessions for game, and storing user data. It can run on a local development server powered by miniflare.

packages/shared

A common type and logics for API and frontend. It contains shared types and interfaces.

packages/www

A frontend that runs on Cloudflare Pages. It is build with Gatsby.

License

MIT