This repository serves as a reference for the GladCode 3 project. It contains the legacy codebase of GladCode 2, which has been copied from the original repository.
Feel free to explore the code and use it as a resource for understanding the evolution of the GladCode project.
You must place some files that are not included in the repository in order to run the project.
MYSQL_DATABASE=<database name>
MYSQL_ROOT_PASSWORD=<database password>
You can choose any name and password you want, as they will be used to create the database.
This file contains the SQL code to create the database tables.
{
"mysql": {
"host": "mysql",
"port": 3306,
"user": "root",
"password": "<database password>",
"database": "<database name>"
}
}You can get it from a zipped file on the gladcode server
wget https://gladcode.dev/phpmailer.zip
unzip phpmailer.zipYou also need to get the spritesheets needed for showing the gladiators. You can get them from the gladcode server as well.
wget https://gladcode.dev/spritesheet.zip
unzip spritesheet.zipBefore running the project, you must create the database. To do that, just place the database.sql file in the build/mysql directory. When you run the project, the database will be created automatically.
You can get the database.sql file from the gladcode server.
wget https://gladcode.dev/database.sqlTo run the project, simply run docker-compose up in the root directory of the project. The website will be available at localhost.