Skip to content

Jwhiles/recruitment-test-donations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recruitment Test - Charity Donations

An unattended front end recruitment test for JustGiving. The full specification can be found below. I diverged slightly by allowing the user to select a charity to view.

During this exercise I learnt a lot about structuring and testing a React app. this article proved very helpful in guiding how I tested the components.

The exercise also taught me a lot about setting up React. I based my webpack.config.js on an example from Peter Thompson, and later expanded it with an SCSS loader.

If I was going to expand this project I would like to allow the user to search amongst a wider range of charities, and include more visual elements - including each charity's logo. I would also like to introduce Redux if the state became any more complex - Redux is way cooler than React state.

Running this app locally

I have hosted the project on heroku here. If you want to run the project locally,

  • git clone git@github.com:Jwhiles/recruitment-test-donations.git
  • cd recruitment-test-donations
  • npm install
  • get yourself a just giving API key, create a config.env file in the root directory with this format
export API_ID=YOURAPIKEYHERE
  • npm run start to run the project local host 3000

Other commands

  • npm run build to rebuild the project
  • npm run test to run tests

Spec

The Challenge

Create an application to display the latest donations for a charity using React and Node.js.

Requirements

A good solution will

  • be production ready
  • work on evergreen browsers
  • have good test coverage and show evidence of TDD
  • have an elegant user experience and design
  • use appropriate front end tooling

Please put your solution on a repository hosting service such as GitHub or Bitbucket (it is always nice to see a clean commit history). Finally, don't forget the README file for your solution.

Concessions

If you are applying for a junior position, we would encourage you to use the create react app project. The production readiness is less important here, we will help you with that when you get hired.

Use of frameworks

Consider the point of the test, it is to get an understanding of your knowledge of the language, libraries and tooling. If you feel you need to use a fully-fledged framework such as create react app or next.js we cannot determine your understanding of the underlying tooling.

Getting Started

  1. Create an account on JustGiving Developer to obtain an appId.

  2. Choose a charityId from one of the charities below.

    Charity ID
    British Heart Foundation 183092
    Macmillan Cancer Support 2116
    Cancer Research UK 2357
    Oxfam 13441
    National Trust 183560
    Save the Children 18570
  3. Substitute the appId and charityId in the curl commands below. You should be able to use these commands to retrieve information about your charity.

curl -H "Content-Type: application/json" https://api.justgiving.com/{appId}/v1/charity/{charityId}
curl -H "Content-Type: application/json" https://api.justgiving.com/{appId}/v1/charity/{charityId}/donations

About

An unattended front end recruitment test for JustGiving.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.9%
  • CSS 12.4%
  • HTML 1.7%