2025-01-21 03:21:05 +05:30
|
|
|
# GibCasa GameServerSupervisor
|
|
|
|
|
2025-02-16 15:50:11 +05:30
|
|
|
## Table of Contents
|
2025-02-19 00:49:39 +05:30
|
|
|
- [Installation using venv](#installation-using-venv)
|
|
|
|
- [Prerequisites](#prerequisites)
|
|
|
|
- [Installation](#installation)
|
|
|
|
- [Installation using Podman](#installation-using-podman)
|
|
|
|
- [Prerequisites](#prerequisites-1)
|
|
|
|
- [Installation](#installation-1)
|
2025-02-16 15:55:33 +05:30
|
|
|
- [Usage](#usage)
|
2025-02-16 15:50:11 +05:30
|
|
|
- [Contributing](#contributing)
|
|
|
|
- [License](#license)
|
|
|
|
|
2025-02-19 00:49:39 +05:30
|
|
|
## Installation using venv
|
|
|
|
|
|
|
|
### Prerequisites
|
2025-01-21 03:21:05 +05:30
|
|
|
|
2025-02-03 11:21:25 +05:30
|
|
|
Python 3.10 or above
|
2025-01-21 03:21:05 +05:30
|
|
|
|
2025-02-19 00:49:39 +05:30
|
|
|
### Installation
|
2025-02-03 11:21:25 +05:30
|
|
|
|
|
|
|
1. Clone the repository:
|
|
|
|
```bash
|
|
|
|
git clone https://git.com.de/GibCasa/GameServerSupervisor
|
|
|
|
```
|
|
|
|
2. Create a virtual environment in Python:
|
|
|
|
```bash
|
2025-02-03 12:13:31 +05:30
|
|
|
python -m venv venv
|
2025-02-03 11:21:25 +05:30
|
|
|
```
|
|
|
|
3. Activate the virtual environment:
|
|
|
|
```bash
|
|
|
|
source venv/bin/activate
|
|
|
|
```
|
|
|
|
4. Install dependencies:
|
|
|
|
```bash
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
2025-02-16 15:55:33 +05:30
|
|
|
5. Run tests:
|
2025-02-16 15:50:11 +05:30
|
|
|
```bash
|
|
|
|
./manage.py test
|
|
|
|
```
|
2025-02-16 15:55:33 +05:30
|
|
|
6. Run migrations:
|
2025-02-03 11:21:25 +05:30
|
|
|
```bash
|
2025-02-16 15:50:11 +05:30
|
|
|
./manage.py migrate
|
2025-02-03 11:21:25 +05:30
|
|
|
```
|
2025-02-16 15:55:33 +05:30
|
|
|
7. Create admin user:
|
2025-02-03 11:21:25 +05:30
|
|
|
```bash
|
2025-02-16 15:50:11 +05:30
|
|
|
./manage.py createsuperuser
|
2025-02-03 11:21:25 +05:30
|
|
|
```
|
2025-02-16 15:55:33 +05:30
|
|
|
8. Run server:
|
2025-02-03 11:21:25 +05:30
|
|
|
```bash
|
2025-02-16 15:50:11 +05:30
|
|
|
./manage.py runserver
|
2025-02-03 11:21:25 +05:30
|
|
|
```
|
2025-02-19 00:49:39 +05:30
|
|
|
## Installation using Podman
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
Podman
|
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
1. Clone the repository:
|
|
|
|
```bash
|
|
|
|
git clone https://git.com.de/GibCasa/GameServerSupervisor
|
|
|
|
```
|
|
|
|
2. Build the image:
|
|
|
|
```bash
|
|
|
|
podman build . -t supervisor-image
|
|
|
|
```
|
|
|
|
3. Run a container in an interactive shell:
|
|
|
|
```bash
|
|
|
|
podman run -it --network=host localhost/supervisor-image sh
|
|
|
|
```
|
|
|
|
4. Run tests:
|
|
|
|
```bash
|
|
|
|
./manage.py test
|
|
|
|
```
|
|
|
|
5. Run migrations:
|
|
|
|
```bash
|
|
|
|
./manage.py migrate
|
|
|
|
```
|
|
|
|
6. Create admin user:
|
|
|
|
```bash
|
|
|
|
./manage.py createsuperuser
|
|
|
|
```
|
|
|
|
7. Run server:
|
|
|
|
```bash
|
|
|
|
./manage.py runserver
|
|
|
|
```
|
2025-02-16 15:55:33 +05:30
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
* Visit http://localhost:8000 for /public and
|
2025-02-03 11:21:25 +05:30
|
|
|
http://localhost:8000/admin/ to login via the superuser credentials
|
|
|
|
|
2025-02-16 15:50:11 +05:30
|
|
|
## Contributing
|
|
|
|
|
|
|
|
1. Fork the repository.
|
|
|
|
2. Create a new branch: `git checkout -b feature-name`.
|
|
|
|
3. Make your changes.
|
|
|
|
4. Push your branch: `git push origin feature-name`.
|
|
|
|
5. Create a pull request.
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
This project is licensed under the [AGPL](https://www.gnu.org/licenses/agpl-3.0.html).
|
2025-02-16 15:55:33 +05:30
|
|
|
|