Prepare your thoughts to discuss how you would mark-up the design (front-end markup-test.pdf
) during the interview.
Please complete the following node based exercise. It should take around 1 hour to complete. Once complete, please push to a public GitHub repo and follow the instructions in the email you received.
$ npm install
- install dependencies
$ DEBUG=frontend-test:* npm start
- run the app in debug mode
- Write routes to render the addresses.njk template in the routes folder, you can also make changes to the template to improve it.
- Create a post handler on the address route that makes a request to the address API using details in provided in the email.
- Display request results in the addresses.njk select element.
- Write suitable unit tests for functionality of the post route.
- If time allows add some markup validation, e.g. what if the input is invalid?