BByaWorld (https://bbyaworld.com) Minecraft server website.
- Python 3
- Pip
- Database (SQLite, MariaDB, MySQL, PostgreSQL, etc.)
- NPM
- Bower
- Clone this repo
- Run
pip -r requirements.txt
to install dependencies - Run
npm i
to install NPM dependencies - Run
bower install
to install Bower components - Configure
secrets.json
file - Using proper settings module (
bbya.settings.dev
orbbya.settings.prod
) runpython manage.py migrate
to migrate the database - Create superuser (if needed)
- Run webserver
- Optional: Add
python manage.py runcrons
as a Cron job to update stats and stuff automatically.
There are two settings modules: dev (bbya.settings.dev
) and prod (bbya.settings.prod
). You may specify which one is needed by setting DJANGO_SETTINGS_MODULE
environment variable, e.g. DJANGO_SETTINGS_MODULE=bbya.settings.prod python manage.py runserver
. Default settings module is dev.
Dev module is set to use SQLite database, prod uses MariaDB.
secrets.json
stores secret information like database access credentials. This file should be placed at repository root.
Example:
{
"secret_key": "django secret key",
"db": {
"default": {
"name": "database",
"user": "user",
"password": "password"
}
},
"allowed_hosts": ["1.2.3.4", "host.com"]
}
Note: Hosts as 127.0.0.1
and bbyaworld.com
are allowed regardless of allowed_hosts
parameter.
See LICENSE file for license information