Giter VIP home page Giter VIP logo

frontend-code-test-senior-main's Introduction

Octopus Energy mascot, Constantine

Octopus Frontend code test

In this code test, you'll be asked to:

  • Make a simple React app that follows the design in design.jpg, consumes the API and makes the front end tests pass. Ideally the app should be responsive.

We've included:

  • A sample Next.js project with a Typescript setup for your convenience, but you're welcome to swap it out for another framework if you prefer
  • Some CSS colour variables that match the colours in the design
  • The assets that you will need to complete the design

You're also welcome to write more tests for other parts of the application - but design those however you like.

Getting started

First you'll need to install your dependencies. We've used yarn, if you have another preference feel free to remove the lock file and use what you are comfortable with:

cd client && yarn

Start the app

yarn dev

This will do two things:

Running tests

You can run tests from the client directory.

cd client && yarn test

This should give you two failures:

FAIL test/product.test.js
    ✕ should be able to increase and decrease product quantity
    ✕ should be able to add items to the basket

The task is to build the app that passes these tests.

What we're looking for

We would like you to demonstrate your ability to:

  • Reason through a programming problem
  • Implement a visual design
  • Implement some user interactions
  • Write code that is easy to understand and extend
  • Write tests that document and safeguard the program's behaviour
  • Use a version control system (e.g. git) to effectively convey intent
  • Write Typescript typings for the components you create, and also the typings for the GraphQL API response

Notes:

  • This has not been set up with any type of CSS-in-JS, but if that is something you would like to add, please feel free.

Best of luck!

frontend-code-test-senior-main's People

Contributors

sjohnston88 avatar

Watchers

 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.