A web server for the free and open source motorsport simulator Speed Dreams that stores player stats, such as lap times.
Go to file
Alfonso Saavedra "Son Link" 833ab2e029
The minimum PHP version required is indicated
2024-04-07 22:52:46 +02:00
app Added 404 error page 2024-04-07 22:41:34 +02:00
public Dashboard (work in progress) 2024-04-07 22:42:48 +02:00
tests Firts commit 2022-03-14 19:13:10 +01:00
writable Firts commit 2022-03-14 19:13:10 +01:00
.gitignore Firts commit 2022-03-14 19:13:10 +01:00
.htaccess Firts commit 2022-03-14 19:13:10 +01:00
LICENSE Firts commit 2022-03-14 19:13:10 +01:00
LICENSE.codeigniter Firts commit 2022-03-14 19:13:10 +01:00
README.md The minimum PHP version required is indicated 2024-04-07 22:52:46 +02:00
builds Firts commit 2022-03-14 19:13:10 +01:00
composer.json Update CodeIgniter to 4.5.0 2024-04-07 22:17:30 +02:00
composer.lock Update CodeIgniter to 4.5.0 2024-04-07 22:17:30 +02:00
env The minimum PHP version required is indicated 2024-04-07 22:52:46 +02:00
extractdatafromsvn.jpg Firts commit 2022-03-14 19:13:10 +01:00
extractdatafromsvn.py Firts commit 2022-03-14 19:13:10 +01:00
phpunit.xml.dist Firts commit 2022-03-14 19:13:10 +01:00
sdwebserver.sql The car categories and tracks are now stored in 2 tables in the database, so the 2 files containing this information are no longer used. 2024-04-07 22:32:24 +02:00
spark Update CodeIgniter to 4.5.0 2024-04-07 22:17:30 +02:00

README.md

Speed Dreams Webserver

A webserver for Speed-Dreams

Based on the original web server by @madbad https://github.com/madbad/sdwebserver

This server stores the statistics of each race of the registered players.

Along each page you will be able to see the statistics of each player: his races, personal bests in each race, track and car information, the time he made within the game, lap statistics, etc.

Installation

Requirements

To run the server you will need a web server with PHP (8.1 or newer) and a MySQL or MariaDB database installed.

  • Download the code or clone the repository.
  • You have to edit 2 files before uploading to the server:
    • app/Config/App.php: In this file it is only necessary to change the value of the variable $baseURL by the URL where the server will be (for example https://myweb.com/sdwebserver).
    • app/Config/Database.php: here is the configuration of the database connection. You only have to modify the ones inside the $default array.
  • It is necessary to obtain the data of the current cars and tracks of the game. To do this you need to run the Python script extractdatafromsvn.py. By default it will open a simple interface, or you can pass as a parameter the path to where the game code is located

extractdatafromsvn screenshot

  • Finally you must create the necessary tables. Inside sdwebserver.sql you will find the statements to create them. Sole you must import it from PhpMyAdmin or any other application you use (or your hosting provider uses).

Once you have followed these steps you only have to upload all the content to your web hosting and it will be ready to work.