kurczynski / takehomeinterview

Take home interview project for prospective hires

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Take Home Interview Project

Goal

Create a web application where a user can view and add planets to a database.

Estimated time for completion:

2-4 Hours

Instructions

Use whatever programming language/framework that is most comfortable to you. The deliverable product should be the sourcecode to a runnable web application with all the requirements met. The database should be blank: you do not need to provide any data with the deliverable.

Place any special setup instructions in a file called SETUP.

Using github, you should fork this repository (Github: how to fork a reposiroy) and add the code you have written to it. When you are done, open a pull request. It will then be reviewed.

Requirements

The homepage

The homepage should contain a list or table of the planets that have been added to the database along with their name, size, distance and ordinality.

For example:

Ordinality  Name     Size    Distance
1           Mercury  0.05    0.34
2           Venus    0.08    0.72

The name of the object should link to that object's detail page.

The input form

A simple form for adding a planet to the database. The form should have 4 inputs: Name, Size (in Earth Masses), Distance (from the sun, In Astronomical Units), Ordinality (Mercury: 1, Neptune: 8) and Description.

For example:

      ____          ____              ____                ____
Name |____|   Size |____|   Distance |____|   Ordinality |____|
              __________________________________
Description: |                                  |
             |                                  |
             |__________________________________|
 ______
|SUBMIT|

Name and ordinality should be unique. Size, Ordinality and Distance should be restricted to numerical input.

The detail page

The detail page should simply display all the available information about the planet.

For example:

Mars
Mars is the dry and inhospitable 4th planet from the Sun. It is here that Matt Damon
grew potatoes using his own poop.

Ordinality: 4
Size: 0.107 Earth Masses
Distance: 1.41 AU

Hints

  1. Use sqlite/memory/flat files instead of something like mysql or postgresql to store data. This will make the setup much less complicated.

  2. Don't worry about styling: the pages don't have to be pretty, just functional.

About

Take home interview project for prospective hires