Giter VIP home page Giter VIP logo

limesteelbordercollie's Introduction

Plentina Backend Developer Challenge

The aim of this challenge is to implement the requirements laid out below and to improve on the existing codebase. You may not import any other libraries other than the ones provided already in package.json. You have one week to finish this challenge upon receipt.

Upload your work in a public git repository with a name randomly generated from this website: https://www.imprima.com/resources/project-name-generator - [Done]

System Requirements

  1. Node v10 LTS

Installation

$ npm install

Usage

To run the app:

$ npm run start

To test the code:

$ npm run test

Challenge Specifications

The app has a single endpoint, /shape, that takes in two objects in its payload. The endpoint checks if these two shapes will collide in a Cartesian plane and provides either a true or a false in one of the response's fields.

Complete the challenge by doing the following:

  1. Finish the /healthCheck endpoint by returning your entire name as a string in the json response - [Done]
  2. Implement the unfinished collides(other: Shape) in the Rect class - [Done]
  3. Create a new Line Shape class that implements Shape. Let it be usable as input in the endpoint for checking collisions (i.e. you should be able to check if a Line collides with another shape, including other Lines). -[Done] Hint: Shape has a member center. For the purpose of this implementation, assume that center is one of the Line's two end points. -[Done]
  4. Add the necessary logging in various stages of the code- Added logger module
  5. Ensure that the currently implemented unit tests are all successful, and add new unit tests for edge cases and the newly added Line class - [Done]
  6. Refactor the code to avoid duplication in Rect and Circle and the newly created Line. You may use any design patterns you want- [Done]
  7. Clean the code as you see fit

limesteelbordercollie's People

Contributors

jainbhupesh533 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.