Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.54 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.54 KB

cso2-users-service

Build status

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.

Building

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

Starting 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.

Testing the service

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

License

cso2-users-service is licensed under MIT License.

This project is not affiliated with either Valve or Nexon.