TLE is a statistic aggregator for TLX, inspired by uHunt (http://uhunt.felix-halim.net/).
- nodeJS
- npm
- MySQL
- Redis (tested on version 3.0.6, but any version should do)
- Run
npm install
on project directory - Create database and import file
db.sql
- Copy
config.json.default
todbConfig.json
and configure it with database and redis connection information. - In database config, db is the database you created (from db.sql) and the other is TLX database credential
- Run
node server.js
, this script will populate the redis cache (invalidating the previous cache first) and start the server - After init.js finish executing, run
node cron.js
to run the cron - TODO: create script to manage launch script
- NOTE: cron script also updating the redis too, so it's important to run the server script first
TLE use aggregated data heavily and will make TLX database load became very high. Cron is running to denormalize TLX database and lazy load statistic data from TLX database. TLE use redis heavily to cache request and store user and problem rank.
For question and contribution, please contact [email protected]