User service for a Nexon's Counter-Strike: Online 2 master server written in Typescript on top of Node.js.
You can find download and build scripts in cso2-master-services.
After downloading the source code, go to a terminal instance, inside the source code's directory and:
npm install # installs the required dependencies
gulp build # builds the service
You can start the user service with:
# environment variables
export USERS_PORT=30100 # tells the service to host on port 30100
export DB_HOST=127.0.0.1 # the host's database to connect
export DB_PORT=27017 # the host's database port to connect
export DB_NAME=cso2 # the database's name
# starts the service
node dist/service.js
You must set those environment variables, or the service will not start.
You can test the service by running:
# environment variables
export USERS_PORT=30100 # tells the service to host on port 30100
export DB_HOST=127.0.0.1 # the host's database to connect
export DB_PORT=27017 # the host's database port to connect
export DB_NAME=cso2 # the database's name
# tests the service
gulp test
cso2-users-service is licensed under MIT License.
This project is not affiliated with either Valve or Nexon.