L-Leite / cso2-users-service

MOVED TO https://github.com/L-Leite/cso2-master-server .Users service for a CSO2 master server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

MOVED TO https://github.com/L-Leite/cso2-master-server .Users service for a CSO2 master server

License:MIT License


Languages

Language:TypeScript 81.9%Language:RAML 10.9%Language:JavaScript 3.4%Language:SQLPL 1.9%Language:Shell 1.3%Language:TSQL 0.4%Language:Dockerfile 0.2%