Manage DDC results and rankings
Warning: All this is in development. I haven't written a build script or packaged anything, so this is just a file dump.
The directories css and js are self-explanatory. The directory data has a PHP script I use to perform database
operations. The database is Mysql, and the structure is available as SQL.
I don't imagine anyone will try to repro the DDC results website, but if you do, here are very high-level instructions:
- Get access to a Mysql database, a webserver, and Node.
- Create a DDC database using the SQL in
cdamon-ddc.sql. You'll need to change the connection settings on both the client side (URL indata/ddc.php) and the server side (innode/rankings.js). - Add results to the database. You can use the web form or write a server-side script if you already have results in some form.
- Run
node calculate_rankings.js allto generate rankings based on all results. Omitallto generate current rankings.