Git Product home page Git Product logo

dh-restaurants-test's Introduction

Delivery Hero Restaurants

Delivery Hero Practise Test
Search between different restaurants and see their food options!

1 1 1 1 1

Features

  • Resposive design
  • Bundle JS - CSS (Transpile ES6 and JSX to ES5)
  • Minify CSS - JS - Images
  • Autoprefix styles for different browsers.
  • Lint JS with eslint
  • Live reload for development (nodemon)
  • Unit testing with Jest and Enzyme
  • Sort (ASC - DESC) / Filter / Pagination / Loading
  • 404 page

Considerations

In the restaurants list, there are some duplicated restaurants (same id and name).
I filter them in the Api and keep only the first one.

Things I would have loved to do, but I couldn't for lack of time:

  • Handle errors in the API.
  • Handle incorrect Ids in the App.
  • Add WAI-ARIA markup
  • Deploy in demo server and provide public url.
  • Generate different bundles in development (with sourcemaps, not minified, etc).

Run Project

Node: v8.9.2

1) Install Dependencies

npm install

2) Run

npm run start

3) Navigate to

http://localhost:3000

Develop

1) Start project

npm run start:dev

2) Compile assets (run it in a different terminal)

npm run watch

Unit Tests

npm run test:unit

Functional Tests

1) Run the app

npm run start:test

2) In another terminal run the tests

Attention: This required JAVA 8 installed with JAVA_HOME set

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
npm run test:e2e

Author

Made from Córdoba, Argentina 😃

Facundo Allemand  
[email protected]

dh-restaurants-test's People

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.