Skip to content

andriinavrotskii/laravel_nasa_api

Repository files navigation

TASK:

Basic Laravel Backend Developer Interview

Dear candidate, please follow this readme and solve all questions.

Before you can start, you should prepare your development environment.

This test requires:

  • access to the internet
  • your favourite IDE
  • working dev environment (PHP 5.6 or PHP 7.1)
  • database (MySQL or MongoDB)

Good luck!


Test tasks:

NOTE: Please develop tasks below in Symfony 2(or 3):

  1. Specify a default controller
  • for route /
  • with a proper json return {"hello":"world!"}
  1. Use the api.nasa.gov
  1. Write a command
  • to request the data from the last 3 days from nasa api
  • response contains count of Near-Earth Objects (NEOs)
  • persist the values in your DB
  • Define the model as follows:
    • date
    • reference (neo_reference_id)
    • name
    • speed (kilometers_per_hour)
    • is hazardous (is_potentially_hazardous_asteroid)
  1. Create a route /neo/hazardous
  • display all DB entries which contain potentially hazardous asteroids
  • format JSON
  1. Create a route /neo/fastest?hazardous=(true|false)
  • for data already in internal database
  • calculate and return the model of the fastest asteroid
  • with a hazardous parameter, where true means is hazardous
  • default hazardous value is false
  • format JSON

Additional Instructions

  • After you're done, provide us the link to your repository.
  • Leave comments where you were not sure how to properly proceed.

Bonus Points

  • Clean code!
  • Test.
  • Knowledge of application flow.
  • Knowledge of modern best practices/coding patterns.
  • Componential thinking.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages