Skip to content

Instantly share code, notes, and snippets.

@forkfork
Last active March 12, 2018 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forkfork/7cbf3dbf77189764d679ca3a5af80912 to your computer and use it in GitHub Desktop.
Save forkfork/7cbf3dbf77189764d679ca3a5af80912 to your computer and use it in GitHub Desktop.
Lux Coding Test Node.js

Lux Group Coding Test

We would like you to create a simple Node.js express server which has a single route, /api/search?q=thailand (the thailand part is a variable).

The new route will request packages from "https://api.luxgroup.com/api/public-offers/", and will return a filtered view of content - with the same structure, but filtering to just show the packages based on text-searching the .result[].name and .result[].location fields for the content in the "q" query param.

Please include:

  • a package.json (so we can get deps and run the project)
  • suitable test coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment