Skip to content

Nolvafrell/Autocomplete-Github-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💪 Hi there!

This is a provided solution for code challenge for recruitment purposes. Feel free to ask any questions you like!

⌛️ Challenge description

GitHub repositories and users autocomplete component

Your task is to create a reusable and self-contained autocomplete component, which can fetch matching users and repositories for a given string of characters.

Requirements:

  • Don’t use an existing autocomplete library (even if in real life this would be preferred).
  • Minimal chars number to initialize search: 3.\
  • Result items are combined and displayed alphabetically using repository and profile name as ordering keys.
  • Number of result items should be limited to 50 per request.
  • The component should give visual feedback for when the data is being fetched, the results are empty, or the request resulted in an error.
  • The component supports keyboard strokes (up and down arrows to browse the results, enter to open a new tab with the repository/user page).
  • The solution should also display a meaningful snippet of your ability to test the code.

Techstack: React. Code challenge artifact: Url to a publicly accessible git repository.

💾 Technical info

📦 Used packages

Project was bootstrapped with Create React App with Typescript template.

📜 Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

🍻 THANKS!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors