summaryrefslogtreecommitdiff
path: root/util/master/README.md
blob: 232986deb9a830f2d57f9608d43655eb1c89f2f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Minetest server list
====================

Setting up the webpage
----------------------
You will have to install node.js, doT.js and their dependencies to compile
the serverlist webpage template.

First install node.js, eg:
    # apt-get install nodejs
    # pacman -S nodejs
    # emerge nodejs

Then install doT.js and it's dependencies:
    $ cd ~/code
    $ git clone https://github.com/olado/doT.git
    $ cd doT
    $ npm install

Or by npm:
    $ npm install dot commander mkdirp

And finally compile the template:
    $ cd ~/minetest/util/master
    $ ~/code/doT/bin/dot-packer -s . -d .
or
    $ ./node_modules/dot/bin/dot-packer -s . -d .


Embending to any page
----------------------

<script>var master = {root: 'http://servers.minetest.net/', limit:10, clients_min:1, no_flags:1, no_ping:1, no_uptime:1};</script>
<script src="http://servers.minetest.net/list.js"></script>