Skip to content

poketrax/PokeTrax

Repository files navigation

PokeTrax

Pokemon Card Data tracking card collection

Downloads

Recommended IDE Setup

Development

The Applicaiton has two part a rust tauri backend and a Single page svelte applicaiton

Backend tauri server

Will lauch a window with what ever ui is in the src folder.

Normal

cargo tauri dev

Stack Trace

RUST_BACKTRACE=1 cargo tauri dev 

Frontend Svelete app

Will lauch a browser to load web app. Server needs to be running on you will get nothing but a loading screen. If you lauch the server after lauching web app refresh the page to get past loading screen

npm run dev

Build installer

This will build an executeable for your Operating system.

Build Process Note: TAURI_PRIVATE_KEY needs to set set or you will get an error. You can create your own key or remove the updater options in tauri.conf.json

cd src-web 
npm run build
cd ..
cargo tauri build

Build Rust Documentation

cd src-tauri
cargo doc --no-deps

Usage

ENV Variables

PK_DATA_DIR="./data" Data directory for data files POKETRAX_DAEMON=true Disables UI for testing and headless execution

Parameters

Name Function
-h headless
-a Admin mode

Maintainer instuctions

Create symlink to executable

Symlink to executable for headless

ln -s /Applications/PokeTrax.app/Contents/MacOS/PokeTrax poketrax
poketrax -h

Process for Updating Version

  1. Make sure src-tauri/tauri.conf.json version matches Release.
  2. Create Release in Github
  3. Action will produce artifacts