Skip to content

xeonds/phi-rank-query

Repository files navigation

phi-rank-query

Phigros score lookup service implemented using Go and Vue. Special thanks to the following projects:

  • Catrong/phi-plugin
  • 3035936740/Phigros_Resource

When developing this tool, I referenced the code from these two contributors and made some modifications based on their work. Thank you for their open-source spirit OwO

Usage

Build

Make sure you have Golang and npm environment installed on your system, and place the latest version of Phigros installation (should be renamed to Phigros.apk) package in ./build directory (create ./build manually if necessary). Then execute the following commands:

make init && make unpack && make -j && make run

Then the program will exit, and you need to fill in the configuration information. The configuration file is located at ./build/config.yaml, and make sure to modify the paths of two files in the Data section to ./dist/xxx.csv.

Run

Finally, execute make run again. Then you can access the service through http://localhost:[your_port].

Or alternatively, you can use the make deploy command to deploy the service using docker-compose.

Upgrade the database

When new songs are added to the game, place the latest version of Phigros installation (should be renamed to Phigros.apk) package in ./build directory, and execute the following commands:

make unpack && make -j

Then you may see the new songs and illustrations in the database.

LICENSE

GNU General Public License v3.0

This project is open source under the GPLv3 license. You are free to use, modify, and distribute this project under the condition of complying with the license.