This is an experimental copy for testing Poikilos' issue mirroring system. Note that Gitea's migration tool can import issues, but the "Issues" checkbox is disabled when "This repository will be a mirror" is enabled (it is for this repo).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
poikilos c3468a8ac9 fix typos 6 years ago
..
etc working on log analyzer 6 years ago
js fix shell script rc usage 6 years ago
node_modules first working login logout day chart 6 years ago
views working on log analyzer 6 years ago
README.md first working login logout day chart 6 years ago
deploy-WIP-ENLIVEN.sh rename and organize files, add interim install 6 years ago
install-mts.sh fix typos 6 years ago
package-lock.json first working login logout day chart 6 years ago
package.json first working login logout day chart 6 years ago
reset-minetest.sh fix typos 6 years ago
server.js add more to listserver to reverse engineer announce from server 6 years ago

README.md

EnlivenMinetest webapp

EnlivenMinetest Node.js webapp for web management of minetest

  • Must run as same user as minetestserver, and neither as root

Uses passport see https://code.tutsplus.com/tutorials/authenticating-nodejs-applications-with-passport--cms-21619

Replaces the "write" (stdout) method of the minetest process: see https://stackoverflow.com/questions/18543047/mocha-monitor-application-output

Developer Notes

Things webapp should deprecate

  • mtanalyze/web
  • /home/owner/GitHub/EnlivenMinetest/etc/change_hardcoded_world_name_first/eauth
    • shell script which contains only nano ~/.minetest/worlds/FCAGameAWorld/auth.txt
  • mts-ENLIVEN and mtsenliven.py (run minetestserver with selected game and world)
var path = require('path');

results = {}
if (!has_setting("system.minetestserver_path")):
    results.error="[ mtsenliven.py ] ERROR: minetestserver_path was not found in your version of minetestinfo.py";
    return results;
var mts = peek_setting("system.minetestserver_path")
if (!has_setting("owner.primary_world_path")):
    results.error= "[ mtsenliven.py ] ERROR: primary_world_path was selected by minetestinfo.py";
    return results;

var world_path = peek_setting("owner.primary_world_path");
var world_name = path.basename(wp);
//var mts_proc;
//mts_proc = /*TODO: finish this*/([mts, '--gameid ENLIVEN', '--worldname ' + world_name]);
mts_proc.write = mts_out;
return results;

Development Log

#!/bin/sh
sudo apt update
sudo apt install nodejs npm mongodb
# NOTE: mongo daemon is called mongod
target_dir=$HOME/enlivenode
if [ ! -d "$target_dir" ]; then
  print "ERROR: Nothing done since missing $target_dir"
  exit 1
fi
cd "$target_dir"
npm init
#except changed jade to pug
npm install express static-favicon morgan cookie-parser body-parser debug pug passport passport-local mongoose

Old (Unused)

#!/bin/sh
wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/server.js
wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/package.json
mkdir views
cd views
wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/views/home.handlebars
mkdir layouts
cd layouts
wget https://raw.githubusercontent.com/ericf/express-handlebars/master/examples/basic/views/layouts/main.handlebars

if [ -d ../layouts ]; then
  cd ..
fi
if [ -d ../views ]; then
  cd ..
fi