Coder Social home page Coder Social logo

ih-coding-challenge-march's Introduction

IH-coding-challenge-march

Goal

The goal is to create a small React application that uses the Wolfram Alpha API ( https://products.wolframalpha.com/api/documentation/ ) to display the path of the sun and the moon for six different cities.

It should take you around 2-3 hours to complete. (This estimation assumes you have worked with create-react-app and basic bootstrap grids recently, so if you need to learn / refresh about these tools it will add to the time needed to complete this exercise).

You can look at the expected view for the moon in Berlin here : https://github.com/HendrikW/IH-coding-challenge-march/blob/master/screen_recording_moon.mov?raw=true .. sun path and other cities should work accordingly :-)

Requirements

  • it should use Bootstrap and look decent on a mobile device ( don't spend too much time on styling details, just don't force mobile users to pinch-zoom please ;) )
  • there should be two different pages/views
    • one that shows the path of the moon (as an image) for each city in a separate box
    • another page that shows the path of the sun (as an image) for each city in a separate box
  • it should have a detailed README that allows a step-by-step setup of the application on the interviewer's laptop.

Notes

  • you can choose any six cities that you like.
  • any search query you can do via WolframAlpha you can also do via their API. ( e.g. https://www.wolframalpha.com/input/?i=sun+berlin and https://www.wolframalpha.com/input/?i=moon+berlin )
  • you can sign up via http://developer.wolframalpha.com/ -> it's free, just type in a name/email and a description for your app etc. (e.g. "testing").
  • you should use the JSON variant of the API (output=json)
  • it's going to be a completely public page, so no user/login required.
  • if you want to use the API from the frontend (this is not really supported by WolframAlpha, but makes sense to complete the project without having to write a backend first): use open -n -a Google\ Chrome --args --disable-web-security --user-data-dir=/tmp/chrome to open an instance of Chrome that does not care about CORS. WINDOWS-users see here: https://alfilatov.com/posts/run-chrome-without-cors/ . DON'T use this for your average web browsing, please, only for this exercise ;-)

first Bonus

  • allow the user to add more cities.

second Bonus

  • store the cities the user added into a session (so when they close the page and open it later again, the added cities are still there, unless they clear their browser cache)

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.