This software helps track Maplestory culvert scores over time!
This software is best used in conjunction with my https://github.com/SLAzurin/gpq-image-ocr-gui
Join the Discord server for update notifications! Here: Server under construction.
A lot of work still needs to be done to be considered a well established Open Source software, so it is like Public Source instead.
Install Docker Engine (Linux) or Docker Desktop (Linux/Windows/Mac) for development.
Install Golang 1.23.x or newer versions when developing.
Install Nodejs 20.x or newer even number LTS versions. (Using nvm.sh is recommended)
Enable pnpm
with this command:
- Command:
corepack enable && corepack prepare --activate
Hosting this on the Cloud is recommended to keep stable uptime.
I suggest the following providers for competitive pricing:
You can pick any cpu size, but I'd suggest a minimum of 1gb of ram and 40gb of storage.
- Setup the discord bot and their permissions and make it join your test server.
- Setup the
.env
file according to.env.template
. - Run the
chartmaker
,db16
,valkey
containers.- Command:
docker compose -f base.yml -f dev.yml up -d chartmaker db16 valkey
- Connect inside the db16 container:
docker compose exec db16 sh
- Run the sql files:
psql -U $POSTGRES_USER -d $POSTGRES_DB </root/sqlfiles/createdb.sql
- Command:
- Run the
main
Go app (discord bot) process and leave it running in the background.- Command:
go run cmd/main/*.go
- Command:
- Install Nodejs dependencies with
pnpm
:- Command:
pnpm i
- Command:
- Run the Website control panel and leave it in the background.
- Command:
cd culvert-web ; pnpm run dev
- Command:
- Setup the discord bot and their permissions and make it join your server.
- Setup the
.env
file according to.env.template
. - Use docker compose, and run the following command:
- Command:
docker compose up -d
- Connect inside the db16 container:
docker compose exec db16 sh
- Run the sql files:
psql -U $POSTGRES_USER -d $POSTGRES_DB </root/sqlfiles/createdb.sql
- Command:
- Connect to the db container with a shell and run a pg_dump
- Run:
docker compose exec db16 sh -c "pg_dump -U \$POSTGRES_USER -d \$POSTGRES_DB >/root/sqlfiles/dump.sql"
- The
dump.sql
is the database dump file (inside the./sqlfiles/
path) - Backup that file "somewhere".
- Run:
- Copy the dump inside the container then connect into it and run the sql file.
- Copy the
dump.sql
inside the./sqlfiles/
path. - Run:
docker compose exec db16 sh
- Run:
psql -U $POSTGRES_USER -d postgres
- Drop and re-create $POSTGRES_DB:
drop database mapleculverttrackerdb; create database mapleculverttrackerdb;
thenexit
the db connection - Run the sql backup:
psql -U $POSTGRES_USER -d $POSTGRES_DB </root/sqlfiles/dump.sql
- You are done restoring the backup.
- Copy the