nahkd porting Stonks as Fabric server mod.
By default, Stonks (this Fabric port ofc) will use memory-based service, which means all the market data will be cleared when you stop the server. To keep the data, you can configure a database service backend using envvar:
STONKS_DATABASE="type=mongodb;host=localhost:27017;database=veryCoolDatabaseName;collection=marketData" java -jar server.jarStonks currently only support MongoDB. Here are fields that you can use in envvar:
type=mongodb: Use MongoDB as service backendhost=<host>[:port], default islocalhost: Host (and port) of the database. You can use connection string in here, but symbols like=might confuse Stonks when parsing the string.database=<name>: Name of the databasecollection=<name>, default isstonks_offers: The collection that will stores all offers from players.