appirio-tech / tc-api Goto Github PK
View Code? Open in Web Editor NEWTC node based API.
TC node based API.
Lots of the helper functions should be using a proven library like underscore, rather than recreating the wheel.
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.
All of contest retrieval is public. We don't want or need the secured actions and routes. They, and their related tests, need to be removed.
SQL scripts mentioned in this deployment guide are missing from the repo.
I put the Contest listing API code into production.
http://api.topcoder.com/v2/develop/challenges
That call is returning only studio contests. In fact it should return only software contests, not anything from studio.
See for example here. These are required.
Trying to generate a JWT. Getting an internal server error 500
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.
It's advisable and desirable for all code to pass jslint for maintainability purposes.
Test files should follow a consistent naming convention of "test..js"
So for example, "test.contests.js" instead of "contest_retrieval.js"
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
add tests for testing of the caching secured APIs
assigned to Sky_
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 ','.
Long path issue has been fix in node-email-templates.
Could you just rebuild node-email-templates and commit it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.