Skip to content

VladDigitalOriginal/backend-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tasks:

1. Endpoint

Create Endpoint which collects all data from /api/index.ts (which can be external api, database etc.) and return it as single bundle {data1: [...], data2: [...], data3: [...]}

2. Unique string

Write a function that accepts three arguments: data (an array of some objects), uniqueKey (representing the key of an object whose value the developer needs to make unique), and unificatorKey (representing the key of an object whose value will be added to the value of uniqueKey to ensure uniqueness). The function should modify the data and return the modified version with unique values. If name is already unique it should not be edited.

Workflow

  1. Before beginning, estimate the time required for each task in README_DEV.md. After completing each task, update README_DEV.md with the actual time spent on that task.
  2. To start the project in development mode, run the command npm run dev in the terminal.
  3. If you make any modifications to the project, add new scripts, or introduce changes, make sure to mention them in the README_DEV.md.
  4. After you have finished, please share the link to your GitHub repository.

Evaluation Criteria:

  1. Correct implementation of API endpoints with proper request handling and response formatting.
  2. Proper usage of TypeScript and adherence to coding best practices.
  3. Complexity of your code and execution/response time.

Additional Notes:

  • Best library choice for creating endpoints is Express.js
  • You are encouraged to modularize your code and use best practices for maintainability and scalability.
  • The focus should be on clean code, efficiency, and adherence to the provided requirements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published