Wednesday, 5 April 2017

Js-miner - CLI utility to manage minecraft servers with Docker

Hey folks.Since nodejs has a lovely community and I wanted to learn me some JavaScript, I tried my hand with writing a simple CLI utility which can manage Minecraft servers with Docker which you can find here: js-miner.As I have a kid he likes it very much, and I faced the problem that I have multiple worlds lined up here and there. And I know, I could have just simply run a server from that folder, but where is the fun in that? I also wanted to have the ability to run the server in a container, the worlds are linked in via volumes.And I wanted to simply type: js-miner start zombie-apocalipse and bamm, I would have a server up and running sporting that map. Once done, just js-miner stop zombie-apocalipse and done. (with shorter names perhaps... :))My containers come with craftbukket and a /home configured, so I don't have to bother with that either.Now, the code isn't finished and I had some trouble adjusting myself to asynchronic programming with JavaScript. But I do love Promises. I'm absolutely sure there are some glaring mistakes in there, as this is my very first attempt at JavaScript, and I would be honored, if somebody would point out some glaring issues I don't see yet.But ultimately I just hope someone finds it usefully and makes his/her life easier as it did with mine. :)Cheers folks. Have a lovely day!

Submitted April 05, 2017 at 09:46AM by skarlso

No comments:

Post a Comment