Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 3.41 KB

README.md

File metadata and controls

59 lines (50 loc) · 3.41 KB

Node UTStats Lite

Unreal Tournament stats website for the https://github.com/rxut/UTStatsLite

Requirements

  • MYSQL Server
  • Node.js 18.17 or later.

Installing

  • Extract the contents of the archive into a folder.
  • Open a terminal in the folder you extracted to.
  • Run the command npm install to install all dependencies.
  • Open config.mjs and change the settings to connect to your mysql server.
  • Run the command node install.mjs to create the database and other settings.

How to change website port

  • Open package.json in the main directory.
  • Find the "scripts" block.
  • Find the line "start": "next start",.
  • To change the port simply add -p portnumber after next start, for example "start": "next start -p 8080", will run the website on port 8080.
  • You can also do the same with the dev mode "dev": "next dev", -> "dev": "next dev -p 8080",

Starting The Website

  • Open a terminal in the folder you installed to.
  • Run the command npm run build to build the website.
  • Once the website has been built, run the command npm run start
  • Open http://localhost:3000 with your browser to see the result.
  • To Create an admin account go to http://localhost:3000/register, the first account is auto activated, every following account needs to be activated.
  • To Login go to http://localhost:3000/login
  • To go to the admin area go to http://localhost:3000/admin
  • In the admin you can then add S/FTP servers to the importer list. ftp admin image

Running The Log Importer

  • Open a terminal in the folder you installed to.
  • Run the command node importer.mjs.

Converting Node UTStats 2 FTP Settings To Lite

  • If you want to insert all your ftp settings from node utstats-2 you need to create a backup with the node utstats 2 admin tool.
  • Open the archive.
  • Place nstats_ftp.json in the main directory of your node utstats lite folder.
  • Run the command node nutsftptolite.mjs
  • You should now see the settings added in the admin area.

Match JSON API

You can fetch json data of matches via match ids or permahashes(recommended) by using the following path /api/json/match/?id=matchid. You have options to ignore certain data by appending a comma separated list &ignore=type1,type2 An example for ignoring player weapon stats and multikills,sprees would be https://example.com/api/json/match/?id=1337&ignore=weapons,special Valid Ignore types are: