Backend Modules

Create Backend Modules #

To create frontend questions you can follow these steps:

  • On the “Library” menu, click “+ Create Module” button.
  • There will be a pop-up for you to insert the module name and choose the “Backend Test” module type. Click Save to proceed.

1. Module General Info #

You’ll be redirected to the “Manage module” page > Tab “Module General Info”.

  1. Module name(mandatory): you can edit the module name here.
  2. Module format (mandatory): this never will be editable.
  3. Total time (mandatory): maximum time spent on this specific module. This would be the default value every time you assign this module.
  4. Complexity (mandatory): choose easy, medium, or complex.
  5. Tags: input tagging to help other recruiters filter this specific module.
  6. Description: put your internal notes for other recruiters here.
  7. Translations (mandatory to choose one): Algobash now supports 2 languages (Bahasa Indonesia and English). This will affect the questions and answers settings. You can activate 1 or both languages.
  8. Module introduction (mandatory): you can put a module introduction for this specific module. When the language is activated for both languages, you can use the dropdown to adjust the content for each language.
  9. Click “Next” to go to the next tab or click “Cancel” to drop the changes.

2. Framework #

Next, you’ll be redirected to the “Manage module” page > Tab “Framework”. You will need to choose only 1 framework and 1 API type.

We will choose Express and REST API for this FAQ.

3. Add Questions #

You’ll be redirected to the “Manage module” page > Tab “Add Questions”.

You’ll see an empty question list. To add your first question, do click “+Add Question”

  1. Question name (mandatory): define your programming question here. Example: Palindrome, etc.
  2. Maximum Test Count (mandatory): set how many times candidates can run the unit testing.
  3. Question text language (mandatory): when you enable more than 1 language, you will need to add the content for question text description and answers in each language.
  4. Question text description (mandatory): add your description for questions here.
  5. User configuration: you can set if the user allows creating files and directories, and if you’ll set separate testing and grading cases.

For frontend and backend tests we’ll use unit testing for the grading system. What you’ll need to config is:

  • SQL Configuration: by default, we already have tables that you can use.
  • Test Cases:

When you add test cases, you’ll need to config:

  1. General config
    • Name of the test case
    • Method (GET, PATCH, etc)
    • URL
    • Headers (optional)
  2. Test case: you need to add JSON input and the expected JSON output.

You can save the test case and add as many test cases as you want.

Do adjust the init files and such in the editor we provide in the last section.

Once all of your mandatory fields are filled, you can add more questions or you can click “Finish” to save the module.

Edit Backend Modules #

To edit you can always follow the steps for adding modules above.