Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you make a tutorial for newbies how to run this with everything? #43

Open
Bazimek opened this issue Nov 23, 2022 · 12 comments
Open

Comments

@Bazimek
Copy link

Bazimek commented Nov 23, 2022

Like the countries to display .. the map etc .. I really do not find out how to run this properly. I just can do the ng build and copy the dist folder to my webserver.

@2hug
Copy link

2hug commented Aug 18, 2023

+1

@alexander171294
Copy link
Owner

alexander171294 commented May 18, 2024

In order to make work the map and other details, you need to start the user-data-srv but for that you need a VPS or something like that, In the past, I hosted a public version of that but I stopped because it costs $.

First of all, you need to install docker in your server, and then you can build the docker image of user-data-srv, or copy directly the folder to your server.

If you decide to copy the folder you need to do this:
first build the project inside the folder user-data-srv, is another project that runs with nodejs, you need to install nodejs in your server, and in the folder user-data-srv you need to put this commands:

first build the project once with this command:

npm run build

in your server you need to start an instance of redis (is like a data base)

docker run --name rustmonRedis -p 6379:6379 -d redis redis-server --requirepass 38674516

Then to run the backend you need to use this command:

and npm run start:prod

In this moment, you are running an instance of user-data-srv in your server, this app by default starts in the port 3000, so you need to point a domain or use the IP: :3000, example: 192.168.0.32:3000, and you need to put this on the file environments.prod.ts in the folder rustmon/src/environments/environment.prod.ts replacing this:

uDataApi: 'https://rustmon.tercerpiso.net',

for this:

uDataApi: 'http://192.168.0.32:3000',

Probably this doesn't work because doesn't have an SSL, but you can try.

If you need more help I will write another guide more complete.

@GameAreaCZ
Copy link

And what about the flags and information about VAC bans etc?

@alexander171294
Copy link
Owner

alexander171294 commented May 19, 2024

All of that features are in user-data-service, vac and other information requires steam api, check the wiki after this last update I added a simply way to configure the frontend to connect that service, because the new feature of plugins update checker is in the service

@GameAreaCZ
Copy link

GameAreaCZ commented May 28, 2024

When I'm already using a redis on port 6379 so I did this:

docker run --name rustmonRedis -p 6380:6380 -d redis redis-server --requirepass 38674516

but where can I edit the IP:port to this redis server of yours in the application npm run start:prod in the folder user-data-srv?

When I go to MY LOCAL IP:3000 I see:
obrazek

EDIT // trying to set a new redis server with : docker run --name rustmonRedis -p 6380:6380 -d redis redis-server --port 6380
redis server is working, your app in the console has: LOG [NestApplication] Nest application successfully started +1ms

but same issue like in the screenshot.

@GameAreaCZ
Copy link

GameAreaCZ commented May 28, 2024

Oh ... I think I figured it out!!
obrazek

It looks so nice! Even the Steam information is working after update the API key. And the plugin manager with information about new versions is so nice!!! Thank you very much for it!

Best Rust Rcon tool out there for sure!

And there is even button for connect the backend service (the wi-fi icon).

That is so nice! What is everything going on in the backend service? And what for is the redis server?

@Hackpig1974
Copy link

Would it be possible to request a updated set of install instructions? I was able to muddle through the npm, node.js, Angular, updating node.js to the support version for Angular. But when I went to try and install I got a no-workspace error. A lot of the people wanting to use this product are typical server admins, not developers that have experience with containers/docker. The product looks amazing, but I just couldn't get it installed. Just a suggestion. Thanks.

@HunterZ
Copy link

HunterZ commented Jun 16, 2024

I'm a C++ developer rather than a web developer, so the install instructions are greek to me. Would it be possible to just publish a pre-built container somewhere that I can run up via Portainer or something?

@Hackpig1974
Copy link

I found someone willing to help me from one of my Discord groups. I am working with them to try and create some instructions. I was able to get further and actually run the service, but even though it says I can then connect to localhost:4200 I cannot get a page to come up on that port. UFW is set to allow as well. I will keep working at it, but getting further each time.

@jimmyx341
Copy link

jimmyx341 commented Jun 16, 2024 via email

@alexander171294
Copy link
Owner

@HunterZ check the comment of jimmyx

@Hackpig1974 https://github.com/alexander171294/RustMon/wiki

If you are trying to run a productive version you can use npm run build and upload the dist folder to a simple apache server or use docker command to run the pre-built version.

@alexander171294 alexander171294 pinned this issue Jun 16, 2024
@Hackpig1974
Copy link

Jimmy worked with me to answer my 1,000 questions and I was super thankful. With his help I was able to get Rustmon installed, configured and working. Ultimately I went down the docker path. After getting it setup and going I decided to not use the rustmon_service container and just use the rustmon container. My server is low population and so the ability to lookup regions and leverage the API was not necessary in my use case. Yours may differ. I created this basic install document in hopes it helps others. Thanks for everyone's help.

Rustmon Installation Instructions -Docker.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants