Website used for the cs2-WeaponPaints plugin
Screenshots taken from private version
- Public: https://ws.primat.fun/
- Private: https://cs.primat.fun/
- Download latest release
- Fill config.json (see below), don't fill appKey in it
- Start if linux
npm run startLinux
or if windows just open app.exe - Then in the console copy your UUID
-
Then pay via DonationAlerts $20 with a message like “Discord: {discord id} UUID: {uuid}”
-
After that i'll contact you and send you your app key
To get admin account go to wps_users, find your account and change admin to 1
- Download latest release
- In
src/
copyconfig.example.json
toconfig.json
and fill it:
{
"name": "Title of your website",
"lang": "en",
"DB": {
"DB_HOST": "host",
"DB_USER": "username",
"DB_PASS": "password",
"DB_DB": "database name"
},
"HOST": "example.com or localhost/127.0.0.1",
"PROTOCOL": "https/http",
"SUBDIR": "/skinsExample/ or just /",
"PORT": 27275,
"INTERNAL_HOST": "127.0.0.1 [For advanced use cases and users only. Read notes.]",
"STEAMAPIKEY": "Your Steam Web API Key",
"SESSION_SECRET": "Some random and secure string containing letters, numbers and special characters like !@#$%^&*(). Atleast 32 chars long.",
"connect": {
"show": true,
"url": "steam://connect/[IP:PORT]?appid=730/[Server password if needed]"
}
}
-
Make sure the database that you specified in the config is the same as in the WeaponPaints plugin. Otherwise the needed tables won't exist and the website won't work.
-
If you are running in docker or running some special server setup. You might encounter issues with the internal expressjs server. As its default running on 127.0.0.1. If you need to change this. You can do so via config option
INTERNAL_HOST
and set it to whatever interface you need. For most advanced use cases like reverse proxy 0.0.0.0 can be used. -
Supported languages
ru, en, pt-BR
-
And then
If Windows:
### public
npm i
npm run start
### private
app.exe
If Linux:
### public
npm i
npm run startLinux
### private
src/app
# if you using pm2
pm2 start "npm run startLinux"