Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Welcome to Project Luettich - Create Contest in Topcoder. This contest is part of a series of contests to build Topcoder’s new offering - Topcoder X - where we use Github and Gitlab to run Bug Bash contests.

 

Contest Details

We ran a contest earlier where we set up a receiver and a processor module. The receiver would receive events from Github based on activities on a preconfigured repository and pass it on to the processor. Apache Kafka was used as the intermediary to consume and produce the messages. The processor did nothing more than log the message to the console.

 

We are ready for our first event handler in the processor - contest creation. We will share a sample code and genuine configuration required to work with the code in the contest forum. You will be using Topcoder’s own contest interfacing modules, namely topcoder-dev-api-projects and topcoder-dev-api-challenges to create a contest in Topcoder.

 

The task is simple - when the processor receives an event, namely issue.created (which corresponds to creating a new issue in Github), proceed to make use of the modules specified earlier and create a contest in Topcoder using the sample code provided. Similarly, when the processor receives an event, namely issue.updated (which corresponds to updating an existing issue in Github), proceed to update the corresponding contest in Topcoder. The expected attributes you need to concern yourself with for both creation and update would be on the lines of updating the title, description and prize money. You can check this code out for extracting the prize money from the contest title. Since this requires you to remember which issue on github is associated with which contest in Topcoder, you can use MongoDB as your database to store this information. You are not expected to copy the code in its entirety and are free to chose your own approach. You are however expected to make use of the modules mentioned above.

 

Keep the existing code that logs the received messages to the console - it will be useful during debugging and we will remove it towards the end of the project.

 

Note that the sample code is using Nodejs v4. You however are expected to work with Nodejs v8.

 


Final Submission Guidelines

Upload the processor to Topcoder. You can also submit just the changed files. The winner will be asked to create a pull request to the processor repository.

 

ELIGIBLE EVENTS:

2018 Topcoder(R) Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30059958