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
- Install Node.js if you haven't already.
- Run
npm install
in a command prompt/shell. - Run
npm run dev
in a command prompt/shell. - Visit http://localhost:5000/?player=your_id_here.
- Install Node.js if you haven't already.
- Run
npm install
in a command prompt/shell. - Install
podman
to run the containers. ./run.sh
- Visit http://localhost:5000/?player=your_id_here.
Almost everything lives under src/
:
main.ts
- the TypeScript entry point, creates the App componentApp.svelte
- the "base" Svelte component, defines the initial page structurecomponents/
- Svelte components (CSS/HTML/JS in a single file)data/
- static data, currently just farm requirementsstores/
- data stores (abstracts retrieving/caching/accessing data)things/
- classes, mostlyutils/
- various utility functions