You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-3Lines changed: 30 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,15 @@
2
2
A user state page buider for Minecraft.
3
3
4
4
# How to use
5
-
You can simply build your own web pages, just following this instruction.
5
+
You can simply build your own web pages, just follow this instruction.
6
+
7
+
_You need to do these command in a series._
6
8
7
9
## First grab user data from map folder
8
10
1. Clone the project.
9
11
2.`npm install`.
10
12
3. Rename config.example.yml to config.yml and modify it.
11
-
4. Run `npm start`. This will take long time to grab the informations for each user, be patient.
13
+
4. Run `npm start`. This will take long time to grab the informations for each user, be patient. Your data will be written to your `output` directory defined in config file.
12
14
13
15
## Build skin render
14
16
1. Go into `skin` folder.
@@ -17,8 +19,33 @@ You can simply build your own web pages, just following this instruction.
17
19
## Build web pages
18
20
1. Go into `web` folder.
19
21
2.`npm install && npm run build`.
22
+
20
23
## That's all
21
-
Now you can find all the files you need in the `web/dist` folder. Upload them to you server, and configure your nginx server like this:
24
+
Now you can find all the files you need in the `web/dist` folder.
25
+
26
+
Move files in place:
27
+
28
+
* Move `web/dist` to your webroot
29
+
* Move the output directory you defined to `webroot/static/data`
30
+
31
+
### Final File Structures
32
+
33
+
```
34
+
- webroot
35
+
+ index.html
36
+
- static
37
+
+ css
38
+
- data # here's the data that main application produces
39
+
+ info.json
40
+
+ players.json
41
+
+ (...) Player UUID directories
42
+
+ fonts
43
+
+ img
44
+
+ js
45
+
+ skin
46
+
```
47
+
48
+
Upload webroot to you server, and configure your nginx server like this:
0 commit comments