Skip to content

Wiibleyde/HaThermos

Repository files navigation

HaThermos

Codacy Badge Release License

Description

HaThermos is a simple parodies of the famous Aternos website. It is a web application that allows you to create a Minecraft server in a few clicks. It is a project that I started to learn the basics of web development. It is not intended to be used in production (but it is possible).

In my deployment of HaThermos, I use the following technologies:

Features

  • Create a Vanilla Minecraft server in a few clicks

Installation and start

Simply clone the repository and run the following command:

docker-compose up -d

And that's it, you can now access the application at the following address: http://localhost:8090/

Manage HaThermos

See the logs the web server

To see the logs of a server, you must go on your server in the /var/hathermos/hathermos-data/ directory. You will then have to open the logs.log file.

Modify the database

To modify the database, you must go on your server in the /var/hathermos/hathermos-data/ directory. You will then have to open the database.db file.

Get the minecraft servers data

To get the minecraft servers data, you must go on your server in the /var/hathermos/minecraft-data/ directory. You will see some folder named has the id of the server. In each folder, you will have the minecraft server data.

Get the backups of the minecraft servers and the HaThermos data

To get the backups of the minecraft servers and the HaThermos data, you must go on your server in the /var/hathermos/hathermos-backup/ directory. You will see some folder named has the date, the hour and the minute of the backup. In each folder, you will have the minecraft folder and the data folder. The minecraft folder contains the minecraft server data and the data folder contains the HaThermos data.

Send backup to another server

You can use the following script :

#!/bin/bash

latest=$(ls -t /var/hathermos/hathermos-backup | head -1)
scp /var/hathermos/hathermos-backup/$latest {user}@{ip}:{path}

Restore backup

To restore the latest backup, you can use this scrpt :

#!/bin/bash
cd /var/hathermos/hathermos-backup/
latest=$(ls -t /var/hathermos/hathermos-backup | head -1)
tar -xzf $latest.tar.gz
cp -r hathermos-data /var/hathermos/hathermos-data
cp -r minecraft-data /var/hathermos/minecraft-data

And to restore a specific backup :

#!/bin/bash

cd /var/hathermos/hathermos-backup/
tar -xzf {backup}.tar.gz
cp -r hathermos-data /var/hathermos/hathermos-data
cp -r minecraft-data /var/hathermos/minecraft-data

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments