Skip to content

LAOUUUUU/aim_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aim_web

aim.laouuu.win is a browser aim trainer with:

  • a branded landing page and in-browser trainer
  • click and tracking modes
  • session history and personal records
  • a Cloudflare Worker API for shared leaderboard storage
  • a D1 database schema for persistent runs

Files

  • index.html - frontend app
  • src/worker.js - Worker API + asset serving
  • schema.sql - D1 schema
  • wrangler.jsonc - Cloudflare config

Deploy flow

  1. Install dependencies:
npm install
  1. Create a D1 database and replace REPLACE_WITH_D1_DATABASE_ID in wrangler.jsonc.

  2. Apply the schema:

npx wrangler d1 execute aim-web-db --file=schema.sql
  1. Run locally:
npm run dev
  1. Deploy:
npm run deploy

API

  • GET /api/health
  • GET /api/leaderboard?mode=click
  • GET /api/leaderboard?mode=track
  • POST /api/sessions

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors