chentex / swgoh-status

Farming status display for Star Wars: Galaxy of Heroes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SW:GoH Status

A simple web app to show event farming status for Star Wars: Galaxy of Heroes players using the SWGOH.GG API. Written in TypeScript and Svelte because I felt like learning some new things.

Live version: https://swgoh.freddie.wtf

Development setup

  1. Install Node.js if you haven't already.
  2. Run npm install in a command prompt/shell.
  3. Run npm run dev in a command prompt/shell.
  4. Visit http://localhost:5000/?player=your_id_here.

Local running

  1. Install Node.js if you haven't already.
  2. Run npm install in a command prompt/shell.
  3. Install podman to run the containers.
  4. ./run.sh
  5. Visit http://localhost:5000/?player=your_id_here.

Project structure

Almost everything lives under src/:

  • main.ts - the TypeScript entry point, creates the App component
  • App.svelte - the "base" Svelte component, defines the initial page structure
  • components/ - Svelte components (CSS/HTML/JS in a single file)
  • data/ - static data, currently just farm requirements
  • stores/ - data stores (abstracts retrieving/caching/accessing data)
  • things/ - classes, mostly
  • utils/ - various utility functions

About

Farming status display for Star Wars: Galaxy of Heroes


Languages

Language:TypeScript 55.8%Language:Svelte 34.8%Language:JavaScript 7.3%Language:Shell 1.0%Language:HTML 0.9%Language:Dockerfile 0.1%