File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 11LISTEN_PORT=4001
2- ADMIN_PASSWORD=
2+ ADMIN_PASSWORD=
3+ WEB_CLIENT=
Original file line number Diff line number Diff line change 22
33This project was part of [ minecraftLegion] ( https://github.com/sefirosweb/minecraftLegion ) .
44
5- This is a backend for manage the bot.
5+ This is a bridge for manage the bot.
66
77## Install:
88- Install [ Node.js] ( https://nodejs.dev/ ) version 14+
99- go to the directory which you want to install into
1010- run ` npm i minecraftLegionWebServer ` on command prompt
11- - make a new file called config.js with the fields shown below
11+ - make a new file called .env with the fields shown below
12+ ``` env
13+ LISTEN_PORT=4001
14+ ADMIN_PASSWORD=AdminnPassForManageBot
15+ WEB_CLIENT=http://localhost:4000
16+ ```
17+ - Run the app with ` npm start `
18+ - WEB_CLIENT => Is minecraftLegionWebClient host: port , is used for accept CORS
1219
1320## Usage:
14-
15- ### ` npm start `
16-
17- Runs the app.
18-
19- The bot is liten on port 4001 for connect bots and frontend
20-
21+ Start app with ` npm start `
22+ They start listening with port you selected in .env file
23+ No need anything else, this app is used for bridge / middleware between bots and front end
2124
2225# TODO
23- - Make a Configuration flexible
2426- Make a robuts documentation
Original file line number Diff line number Diff line change 11# 0.1.6
22* Change version directly same has minecraftLegion for have "sync" versions
3+ * Added dynamic call for configure bot
34
45## 0.0.3
56* Added security on websocket with password (see .env_example)
You can’t perform that action at this time.
0 commit comments