]> git.lizzy.rs Git - minetest.git/blob - util/master/README.md
Fix masterserver README.md
[minetest.git] / util / master / README.md
1 Minetest server list
2 ====================
3
4 Setting up the webpage
5 ----------------------
6 You will have to install node.js, doT.js and their dependencies to compile
7 the serverlist webpage template.
8
9 First install node.js, eg:
10
11     # apt-get install nodejs
12     # pacman -S nodejs
13     # emerge nodejs
14
15 Then install doT.js and its dependencies:
16
17     $ cd ~/code
18     $ git clone https://github.com/olado/doT.git
19     $ cd doT
20     $ npm install
21
22 Or with npm:
23
24     $ npm install dot commander mkdirp
25
26 And finally compile the template:
27
28     $ cd ~/minetest/util/master
29     $ ~/code/doT/bin/dot-packer -s . -d .
30
31 or
32
33     $ ~/node_modules/dot/bin/dot-packer -s . -d .
34
35
36 Embedding to any page
37 ----------------------
38
39     <script>
40         var master = {
41             root: 'http://servers.minetest.net/',
42             limit: 10,
43             clients_min: 1,
44             no_flags: 1,
45             no_ping: 1,
46             no_uptime: 1
47         };
48     </script>
49     <script src="http://servers.minetest.net/list.js"></script>