Code Monkey home page Code Monkey logo

hexagon's Introduction

Arvus/Hexagon interview challenge

A simple patient and physician registry

This system is composed of a Java Backend powered by Spring Boot & PostgreSql, and an AngularJS single page web app.

It is deployed with Heroku at [this site] (https://limitless-beach-88483.herokuapp.com/ "app")

Java backend

This is a very simple program, leveraging Spring Boot to expose a REST interface to the database. The only notable features are:

  • It uses Hibernate validators to constraint CPF values on insert/update.
  • The database uses a join table with lazy fetching for the relation between Physicians and Specialties. ** This means the web app must make additional requests to list a physician's specialties, and a specialty associated physicians.

Tests

Run "mvn package" on the project root.

Possible improvements

  • Replace the Spring Boot generated REST interface with a service facade
  • Use inheritance to make Physician extend Person

Angular web app

This app was designed following Google's Material Design using the angular-material lib.

It uses a tab panel to navigate between patients, physicians and specialties, and list components to display each kind of entity. Creation and edition of entities is done in-page to avoid pop-ups.

The appropriated entity lists are refreshed every time a tab is changed.

The physician's specialties are selected through an auto-complete field with text search to avoid a large combo box.

CPF validation is powered by ng-cpf-cnpj.

The web app source is in src/main/resources/static/

Possible improvements

  • Use a packaging system, such as Webpack
  • Create a git repository for the web app, and include it in the backent through a git submodule
  • Move the pagination controls to it's own directive, or use a ready made lib (couldn't find one ready for material design).
  • Add icons to the listings (phone, etc).
  • Maybe force the "create" FAB to the bottom of the page
  • Create a "details" page for specialties, since it's physician list can become convoluted.
  • Double check responsive layout.

What I learned on this project

Spring Boot and Heroku (first time I used either tech). I was very pleased with Heroku's simplicity, and with Spring Boot's code generation capabilities.

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.