Giter VIP home page Giter VIP logo

ww-code-test's Introduction

ww-code-test

In this test you will find a wide cross section of the type of code you will be exposed to at Wealth Wizards.

For an experienced engineer this code test should take ~1 hour to complete. For more junior candidates we would suggest you attempt as much of the test as you can in a 2 hour time limit and submit your progress, however if you should wish to continue beyond that we welcome you to do so.

Instructions

Click the Use this template button above to create a private repository in your own github account and invite github users @mrwithersea and @rob1256 as collaborators on your repo.

Please commit your work on a new branch and raise a pull request against the master branch of your repo and add us as reviewers. Please add a simple description to your PR outlining which parts of the test have been completed and any comments you feel necessary.

Start the app by running the following commands:

yarn
yarn dev

The placeholder application can be browsed to on:

http://localhost:8080

There is a single API route accessible through the following request:

curl -X POST http://localhost:8080/v1/national-insurance -H 'Content-Type: application/json' -d '{"income": 1234}'

Part A. Fix the unit tests that are broken

Run this command to see the result of the unit tests, you will need to implement the empty function at line:27 of src/services/national-insurance.js in order to make the failing unit tests pass.

yarn test:unit

Part B. Fix the feature tests that are broken after completion of Part A.

Run this command to see the result of the feature tests, you will need to implement the missing feature of the API that is indicated by the failing tests.

yarn test:feature

Part C. Build a simple React application that should allow a user to compare their national insurance contributions between 2018/19 and 2019/20

Run this command to run the application locally.

yarn dev

Alternatively you can run this command to bring the application up in the provided docker container:

make dev

There are a number of packages pre-installed with this codebase, feel free to use any you see fit or add any of your own choosing.

Good luck


Caveats

This code test was written on macOS but will run natively on Windows 10.

When running on Windows 10 our preference was to follow this guide to using Windows Subsystem for Linux and installing Bash through the Ubuntu distro in the Windows Store.

Users of Ubuntu should be aware that in some versions of the distro there are extra hurdles around the aliasing of the yarn command by the cmdtest library and the use of nodejs rather than node, this page provides details on rectifying these problems.

This code test requires Node.js 10.x (which is in LTS) and we advocate using a node version management tool such as n to help in managing your node versions.

ww-code-test's People

Contributors

dependabot[bot] avatar daveshepherd avatar mrwithersea avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.