Giter VIP home page Giter VIP logo

coding-challenge-wunder's Introduction

Coding Challenge Wunder Mobility

Setup

Requirements

  • Docker
  • GIT

Build application

  1. Run docker-compose up
  2. Enter container make enter-app
  3. cd into public cd public / inside container
  4. run migrations php artisan migrate / inside container
  5. install dependencies run composer install / inside container

Run tests

make tests

Accessability

Implementation

Here is a simplified UML class diagram to show the main classes I used to design the backend. Please note that this is only a simplified representation. Many other classes are used in the real implementation.

Screenshot

Questions

1. Describe possible performance optimizations for your Code.

  • I am using 3 retries when calling the payment endpoint. If the endpoint is slow or for split second not reachable the user has to wait.
  • Frontend performance can be increased with a proper framework. I am using raw js, jquery and including libraries via CDNs.

2. Which things could be done better, than you’ve done it?

  • I am not validating the data in the backend. When you place a direct CURL request there could be a failure.
  • I can definetly improve the frontend. Using a frontend framework and splitting up the application would be more professional.
  • I could have implemented a better exception handling solution. Currently throwing a custom exception and handling this exception directly inside the controller.

coding-challenge-wunder's People

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.