Compare commits
No commits in common. "master" and "main" have entirely different histories.
41
README.md
41
README.md
@ -1,12 +1,5 @@
|
|||||||
# GibCasa GameServerSupervisor
|
# GibCasa GameServerSupervisor
|
||||||
|
|
||||||
## Table of Contents
|
|
||||||
- [Prerequisites](#prerequisites)
|
|
||||||
- [Installation](#installation)
|
|
||||||
- [Usage](#usage)
|
|
||||||
- [Contributing](#contributing)
|
|
||||||
- [License](#license)
|
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
Python 3.10 or above
|
Python 3.10 or above
|
||||||
@ -29,37 +22,19 @@ Python 3.10 or above
|
|||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
5. Run tests:
|
5. Run migrations:
|
||||||
```bash
|
```bash
|
||||||
./manage.py test
|
python manage.py migrate
|
||||||
```
|
```
|
||||||
6. Run migrations:
|
6. Create admin user:
|
||||||
```bash
|
```bash
|
||||||
./manage.py migrate
|
python manage.py createsuperuser
|
||||||
```
|
```
|
||||||
7. Create admin user:
|
7. Run server:
|
||||||
```bash
|
```bash
|
||||||
./manage.py createsuperuser
|
python manage.py runserver
|
||||||
```
|
```
|
||||||
8. Run server:
|
* visit http://localhost:8000 for /public and
|
||||||
```bash
|
|
||||||
./manage.py runserver
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
* Visit http://localhost:8000 for /public and
|
|
||||||
http://localhost:8000/admin/ to login via the superuser credentials
|
http://localhost:8000/admin/ to login via the superuser credentials
|
||||||
|
* will need docker running
|
||||||
## 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).
|
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
from django.test import TestCase
|
|
||||||
from webpanel.models import Game
|
|
||||||
|
|
||||||
class GameTestCase(TestCase):
|
|
||||||
def setUp(self):
|
|
||||||
Game.objects.create(name="Assassin's Creed")
|
|
||||||
|
|
||||||
def test_game_creation(self):
|
|
||||||
assassins = Game.objects.get(name="Assassin's Creed")
|
|
||||||
assert str(assassins) == "Assassin's Creed"
|
|
||||||
|
|
3
webpanel/tests.py
Normal file
3
webpanel/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
Loading…
x
Reference in New Issue
Block a user