Coder Social home page Coder Social logo

pubarazzi's Introduction

Pubarazzi ©

Dear CEO,

This is your MVP in 4/5 hours. It is by design that once you add a drink, you can't remove it since we're on commission and all.

API

Dear Backend developers, I have used axios-mock to simulate calls to the api.

So have a look at helpers/mockApi folder. The index.js contains the current API calls, samples of responses are in mockApi/data. This is our contract - don't break it and we'll get along.

And...

Dear interview folks,

I assumed the idea behind this exercise is to see how much I can build in 4 hours (with vague requirements). I tried to keep the code quality ok since it is, you know, still an interview.

Given few more hours, I would add prop-types, have a loader, use enzyme and improve on tests coverage - right now, I've been pragramatic with the tests choosing to use snapshots most of the time. (The reason I didn't test the containers is that I made the api mock random making the tests non-deterministic - I should have revisited that but .. time)

I didn't add Redux but that wasn't because of time - I thought that given the requirements, adding it would be contrived. Local state is fine up to this point.

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.