Giter VIP home page Giter VIP logo

urbantz-test's Introduction

OHM DELIVERY

This is a fictional company minimalistic project that you have to fix and improve.

The company delivers electrical resitances and provides a tracking page to their drivers and customers.

Improve the website to let the user search for the status of a resistance being delivered. When delivered, the driver should be able to acknowledge the delivery (or the failure) of the ordered resistance.

For this test, the user will receive the following trackingId 1e62adfe.

How to use:

In web and server directories, type:

npm run start

To run the tests, go to the server directory and type:

npm run test

Instructions:

Web:

  • Build the search to query the resistance informations and display the status to the customer.
  • Allow on the UI for a driver to change the status of a delivery:
    • Status can either be 'DELIVERED' or 'REFUSED'.
    • If the status is 'REFUSED', ask the customer to provide a little piece of text as a failure reason.

Server:

  • Create a new endpoint to manage the status transition.
    • Status has to be one of the followings:
      • 'CREATED' -> 'PREPARING' -> 'READY' -> 'IN_DELIVERY' -> 'DELIVERED'|'REFUSED'.
    • A given status can only go to the next state, therefore only one transition is possible per status. Only exception is 'IN_DELIVERY', which can go to to either 'DELIVERED' or 'REFUSED'.
  • If a failure reason is provided, save it.

Perks:

  1. Show more info about the customer or display the ohm history.
  2. Improve existing code and project architecture as you wish.
  3. Allow user to quickly re-order a ohm with the same specifications.
  4. Allow the user to add a comment about the delivery.
  5. Change the UI as you wish.

urbantz-test's People

Contributors

daspinola avatar

Watchers

James Cloos avatar Konstantin Semyanystyi 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.