Giter Site home page Giter Site logo

chicago-employees's Introduction

Chicago Employees

Coding exercise for DataTheorem by Pierre Ortega, August 2018

A responsive web app that list a directory of chicago employees given by an API.

  1. The first screen is the list of all employees with only their first name, last name and title.
    • It is possible to filter the list based on the employees' departments (Police, General Services, etc.).
    • The keyboard can be used: Down to focus on the next row, Up to focus on the previous row, and Enter to navigate to the next screen with the currently focused employee's details.
  2. Clicking on an employee's name or hitting Enter while focused on an employee will trigger the second screen, which displays all the information about this employee: id, first name, last name, title, salary, department.
    • The keyboard can be used here too. Down changes the employee information displayed to that of the "next" employee. The Up key is the previous employee. And the Enter key takes you back to the table view with the current employee focused.
  3. Lastly, the third screen provides a form to add a new employee to the database.

How to use

Production

Build it with docker

docker build -t chicago-employees .

or, use multi-stage builds to build a smaller docker image

docker build -t chicago-employees -f ./Dockerfile.multistage .

Deploy to the cloud on zeit.co

Deploy to now

Download now (About it)

now

Development

Requirements:

  • NodeJS 8 and above
  • Yarn or NPM

Clone repository and run:

npm install
npm run dev
# or
yarn
yarn dev

Go to http://localhost:3000

chicago-employees's People

Contributors

pierreandreis avatar

Watchers

 avatar

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.