Tyler Wilding f4dfb6045a API Rewrite and Dockerization (#78)
* workers: init

* workers: d1 initial work

* workers: resuming work, simplified schema

* api: flesh out the majority of critical features

* api: get rid of the old implementation

* db: seed database with current releases

* db: break seed files up, too much for a single stdout buffer

* api: support version diff'ing

* d1: debugging insert issue

* api: fix insert issue (missing `await`s) and explicitly cache to avoid invocations

* api: append CORS headers for requests originating from `pcsx2.net`

* api: update seed data and fix response data

* api: optimize DB indexes and add caching

* api: update page rule cache when a release is added/deleted/modified

* api: most functionality ported over to rocket.rs

* api: finish off core implementation

* api: dockerize

* api: cleaning up TODOs

* v1: remove some of the old implementation

* v2: small script to pull release data, update DB seed

* v2: minor cleanup

* v2: finalize v1 -> v2 transition

* v2: synchronize db on startup

* sqlx: commit sql query metadata

* v2: handful of bug fixes and v1 parity adjustments

* v2: some repo house cleaning

* ci: add CI workflows

* ci: finalize ci implementation
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00
2025-02-26 20:31:03 -05:00

PCSX2 API

TODO

Development

Running Locally

SQLite Setup

  • cargo install sqlx-cli
  • sqlx database create
  • sqlx migrate run --source ./db/migrations
  • cargo sqlx prepare

Running the App

  • cargo run

Docker

Building Docker Container

  • Ensure Docker is running
  • docker build . --tag pcsx2-api:local

Running Local Docker Container

  • docker-compose -f ./docker-compose.local.yaml up

Package Docker Container

  • docker save -o $PWD/pcsx2-api.tar.gz pcsx2-api:test
  • docker load -i pcsx2-api.tar.tar
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-31T05:27:48.015Z
Readme 3.3 MiB
Languages
Rust 98.4%
Dockerfile 1.6%