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" c644365a91
Update README.md
2023-05-30 19:03:02 +02:00
app Fix error if no laps 2022-11-27 09:20:37 +01:00
public Fix error if no laps 2022-11-27 09:20:37 +01: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 Update README.md 2023-05-30 19:03:02 +02:00
builds Firts commit 2022-03-14 19:13:10 +01:00
composer.json Firts commit 2022-03-14 19:13:10 +01:00
composer.lock Firts commit 2022-03-14 19:13:10 +01:00
env Firts commit 2022-03-14 19:13:10 +01: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 Firts commit 2022-03-14 19:13:10 +01:00
spark Firts commit 2022-03-14 19:13:10 +01: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 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.