Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

mrtnzlml-archive/t9-exercise

Repository files navigation

Build Status

Install

yarn install

Run the application

yarn start

It will start two processes:

You need to send POST request with this payload to the server:

{"query":"{combinations(pressedNumbers:[2,3])}"}

And you should get this response:

{"data":{"combinations":["ad","ae","af","bd","be","bf","cd","ce","cf"]}}

Run tests

yarn test

Task

Implement a number to word list converter as a Node backend and React/Redux fronted.

The backend should provide a rest endpoint that converts a given numeric string
into a list of corresponding words in the style of T9 [https://en.wikipedia.org/wiki/T9_(predictive_text)]
or Phonewords [https://en.wikipedia.org/wiki/Phoneword]. For example, given
the input 23 the output should be: ad, ae, af, bd, be, bf, cd, ce, cf

The frontend should allow the user to enter a number, query the backend for
the corresponding expansions, and display them.

The solution should be shared with us in a git repository with real history included.
It's OK not to deliver 100%, but the more working parts the better. For example if you
struggle with the backend, focus on frontend and just mock the API calls.

Ways to go beyond the minimal solution could include for example:
- phone keyboard -like UI
- great project setup
- mobile app in React Native
- filtering to include only real words based on a suitable word list

Releases

No releases published

Packages

No packages published