This is a simple skeleton api dealing with data on postcode inputs. We've provided this knowing your time is precious, and we strongly suggest that you use this as your starting point, and complete as much as you can within the agreed time limit. However you may set up the project differently and/or use a different language or framework if you feel that helps to display your skills better.
- Create an endpoint that takes a single postcode and returns the latitude and longitude.
- Create another endpoint (or extend the one in step 1) to take a set of postcodes and return the relevant latitude and longitude for each.
- Still got time left? extend further by returning more useful data about the location, e.g. weather
Please complete as much of the task as you can in a 2 hour timeframe. We're not expecting you to return a completely finished project, but you should be prepared to talk about the choices you've made. We'd like to see your Git commit history to understand how you've built up your solution, so please be sure to make commits as you go along.
Fork or clone this repo and run npm install
to get started.
npm run dev
will give you a live updating server
npm run build
will compile down to ES5 into the dist
folder
npm run start
will serve the compiled code
npm run test
will run tests
You might notice that we've included support for TypeScript in this project - we'd love to see you use TypeScript if you're familiar with it already. If you're not, we'd much rather see what you can do with JS than expect you to learn a new technology in the next 2 hours. Either way you can use the live updating server and test setup we've provided.
Feel free to use any of the below if you find them helpful: