Giter VIP home page Giter VIP logo

tc-api's Introduction

Build Status

TopCoder API (built on NodeJS)

As Topcoder(http://www.topcoder.com/tc) and CloudSpokes integrate, the APIs are going to play a critical role. TopCoder has already started work on a API, which can be found here. That API is built on a Java stack.

In order to accelerate development we are looking to move some of the API work to use a more cloud-friendly approach built on NodeJS. This is complicated by the fact that the back end of TC relies on an Informix DB.

Usage

We have provided clear steps to setup in CentOS 6.x, Ubuntu, MacOS and Windows, please check wiki

Other flavors/versions of linux should work, but have not been validated yet.

tc-api's People

Contributors

ajefts avatar ananthhh avatar bugbuka avatar cheuk-fung avatar delemach avatar dev4tc avatar dingjian2 avatar flytoj2ee avatar ghost141 avatar hesibo avatar indytechcook avatar isvisv avatar lstkz avatar mashannon168 avatar mdesiderio avatar microwishing avatar muzehyun avatar panoptimum avatar pnomarev avatar renyu-io avatar rrecharla avatar skyhit avatar testpersonal avatar thabofletcher avatar theosch avatar tladendo avatar vlady avatar wangzhihao avatar wenhui-wd avatar ykohata avatar

Stargazers

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

Watchers

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

tc-api's Issues

Issue with setting up tc-api on localhost

Not sure where to post this.
I am trying to set up tc-api on my local. Here are some of the errors that I am getting (it is mostly around not being able to find a few header files).

/Users/pratyush.verma/.node-gyp/0.10.25/deps/v8/include/v8stdint.h:34:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
...

  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
../src/blowfish.cc:47:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
...

/Users/pratyush.verma/.node-gyp/0.10.25/deps/v8/include/v8stdint.h:34:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
...

/Users/pratyush.verma/.node-gyp/0.10.25/deps/uv/include/uv.h:59:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h> /* size_t */
...

node.js:811
    var cwd = process.cwd();
                      ^
Error: ENOENT, no such file or directory
    at Function.startup.resolveArgv0 (node.js:811:23)
    at startup (node.js:58:13)
    at node.js:902:3

node-email-templates module

Long path issue has been fix in node-email-templates.
Could you just rebuild node-email-templates and commit it?

Server Issue

Trying to generate a JWT. Getting an internal server error 500

Login vm as ‘tc’ account . what is vm in this database setup

i am trying to deploy these apis project locally in Ubuntu.i am trying to set up database. In second instruction you have mentioned 2. Login vm as ‘tc’ account . perhaps you are referring vm as virtual machine.but there is no virtual machine.Please explain this point in little detail.

Some JSLint issues missed

In helper.js:

Line 222, column 37: Expected an identifier and instead saw 'const' (a reserved word).
Line 226, column 44: Expected an identifier and instead saw 'const' (a reserved word).
Line 227, column 48: Expected an identifier and instead saw 'const' (a reserved word).
Line 233, column 44: Expected an identifier and instead saw 'const' (a reserved word).
Line 287, column 8: Expected an identifier and instead saw 'const' (a reserved word).
Line 295, column 13: Unexpected ','.
Line 297, column 8: Expected an identifier and instead saw 'const' (a reserved word).
Line 297, column 44: Expected an identifier and instead saw 'const' (a reserved word).
Line 297, column 64: Expected an identifier and instead saw 'const' (a reserved word).
Line 297, column 97: Expected an identifier and instead saw 'const' (a reserved word).
Line 298, column 12: Expected an identifier and instead saw 'const' (a reserved word).
Line 298, column 46: Expected an identifier and instead saw 'const' (a reserved word).
Line 298, column 74: Expected an identifier and instead saw 'const' (a reserved word).

In contests.js

Line 280, column 43: Expected an identifier and instead saw 'const' (a reserved word).
Line 282, column 50: Expected an identifier and instead saw 'const' (a reserved word).
Line 284, column 50: Expected an identifier and instead saw 'const' (a reserved word).
Line 287, column 50: Expected an identifier and instead saw 'const' (a reserved word).
Line 289, column 50: Expected an identifier and instead saw 'const' (a reserved word).
Line 291, column 50: Expected an identifier and instead saw 'const' (a reserved word).
Line 626, column 69: Unexpected ','.

Internal Server Error (JWT)

Hello there!

It appears that the TopCoder API is broken. I'm testing the Auth endpoint http://api.topcoder.com/v2/auth?username=<username>&password=<password> and I'm getting the following error:

{
    "error": {
        "name": "Internal Server Error",
        "value": 500,
        "description": "Something is broken. Please contact support.",
        "details": "the connection was disabled"
    },
    "serverInformation": {
        "serverName": "TopCoder API",
        "apiVersion": "0.0.1",
        "requestDuration": 446,
        "currentTime": 1603747796879
    },
    "requesterInformation": {
        "id": "3aba34778228a6aa457363e8357182d1b9533fbe-xyZ36GJdDc3KqXYJ",
        "remoteIP": "<IP_ADDRESS>",
        "receivedParams": {
            "username": "<username>",
            "password": "<password>",
            "apiVersion": "v2",
            "action": "generateJwt"
        }
    }
}

Thank you in advance for the help.

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.