Skip to content

EthanSk13s/miriondb

Repository files navigation

MirionDB

Just a simple translated database for TD. All data is from matsurihi.me

Building and setup

Setup (With Docker)

  1. Clone this repo
git clone https://github.com/EthanSk13s/miriondb
  1. Modify the compose file as necessary, it should work out of the box (unless relying on hosting images on your own, in that case images may take time to download)

  2. Now to simply start, merge the base compose with the other composes inisde the composes folder:

$ docker compose -f docker-compose.yml -f docker-compose.dev.yml build
...
$ docker compose -f docker-compose.yml -f docker-compose.dev.yml up

Setup (Manual)

!! Prerequisites are the latest version of Rust, at least python 3.8, and a ready-to-go Postgres server !!

  1. Clone this repo
git clone https://github.com/EthanSk13s/miriondb
  1. Install requirements and initialize a venv inside the directory
python -m venv .venv
source .venv/bin/activate           # .venv/Scripts/activate if on windows
pip install -r requirements.txt
  1. Create a new file called db.yml and modify it as necessary:
postgres:
  user: # Your postgres user
  pass: # Your postgres password
  database: # Which database to use
# If you are actively using the asset server, leave this as is
assets:
  host: "127.0.0.1"
  port: 5501
  1. Don't forget to edit Rocket.toml to point to the DB uri
[default.databases]

theater = { url = "postgresql://{user}:{pass}@localhost/{database}" }
  1. Now start the python server:
python run.py
  1. Start the asset server by:
cd theater          # traverse to the theater director
cargo run           # add the --release flag, if building through release

About

A simple translated card database for TD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published