Giter Site home page Giter Site logo

l-leite / cso2-users-service Goto Github PK

View Code? Open in Web Editor NEW
12.0 5.0 6.0 1.07 MB

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

License: MIT License

JavaScript 3.45% RAML 10.90% TypeScript 81.93% Dockerfile 0.18% Shell 1.30% TSQL 0.38% SQLPL 1.86%

cso2-users-service's Introduction

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.

cso2-users-service's People

Contributors

dounai2333 avatar l-leite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cso2-users-service's Issues

default item is saved on MangoDB

yea, it is saved in MangoDB when you first time setup the server, and the current code does not replace it when you change the "defaultitems" file (even you restarted everything you can)
that means if you want to update this file, you must delete all the player's account data in the MangoDB, this is terrible.

It can not use

It can not use
Please write a README.MD to tell us how to use
BPUX6Z3E_CIHB%_N0130$YN

Build Error ( inventory.ts(102,76) )

[root@localhost users-service]# gulp build
[23:39:06] Using gulpfile /home/nodejs/server/users-service/gulpfile.js
[23:39:06] Starting 'build'...
[23:39:06] Starting 'clean:dist'...
[23:39:06] Cleaning transpiled source...
[23:39:06] Finished 'clean:dist' after 17 ms
[23:39:06] Starting 'tslint'...
[23:39:06] Linting source code...
[23:39:08] Finished 'tslint' after 1.39 s
[23:39:08] Starting 'typescript'...
[23:39:08] Transpiling source code...
src/entities/inventory/inventory.ts(102,76): error TS2322: Type 'number' is not assignable to type 'Partial | { itemId?: QuerySelector; ammount?: QuerySelector; }'.
TypeScript: 1 semantic error
TypeScript: emit succeeded (with errors)
[23:39:19] 'typescript' errored after 11 s
[23:39:19] Error: TypeScript: Compilation failed
at Output.mightFinish (/home/nodejs/server/users-service/node_modules/gulp-typescript/release/output.js:130:43)
at applySourceMap.then.appliedSourceMap (/home/nodejs/server/users-service/node_modules/gulp-typescript/release/output.js:43:22)
[23:39:19] 'build' errored after 12 s
[root@localhost users-service]#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.