Skip to content
/ my_app Public

esercizio di studio realizzazione web application in java

Notifications You must be signed in to change notification settings

blasus/my_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contracts visualization web service

Feature:

This is a first tutorial project to realize a web application for a more clear visualization of data stored in a DataBase, organizing them in a table or using graphs, with the purpose to improve their interpretation and make data analysis.

This is an excellent exercise to learn all the necessary tools and every operation to develop a web application. In fact, it is composed from a java servlet based backend that will send to frontend the requested data through API REST using JSON for a easier organization of them. The frontend will be structured in dynamic web pages collecting data and visualizing them in interactive tables and graphs.

In this project will be considered data representing job contracts activation from Regione Lazio. The original dataset can be found here: http://dati.lazio.it/catalog/en/dataset/comunicazioni-obbligatorie-attivazioni . This app is designed to expose a large amount of data, so will be used for example the whole dataset referring to 2014 contracts activation (in total 4 quarters, corresponding to about 1.6M entries).

It will be most important the storage structure of data. For this example it may be convenient to use a NoSql DB, for example MongoDB or anything else noSql DBMS is a good choice. The backend engine is directed by Spring data MongoDB framework for java, where Spring uses its core repositories to allows a fast and efficient mapping from the resources stored in db into Spring Beans using MongoDB document syle data store. It is indeed a high-level abstraction template for storing and querying documents.

Another important aspect to consider when building an application is the logging of events, errors and in general the status of our app, in particular during we want to test it using debug functions. A powerful java framework used for this purpose is LogBack. In particular this project uses the core package that provides essential packages for logging functions in java based programs.

Two really graceful jquery frameworks for the client visualization are DataTables (see https://datatables.net/manual/index ) and D3.js (see https://d3js.org/ ). Pivot/OLAP based tables are also good alternatives for the exposition.

The last but not least is the implementation of the automation build like Maven o Gradle. In this example will be used Maven for this purpose.

Tools:

Configuration:

  • set up MongoDB environment, importing the dataset into mongo using mongoimport or other tools (e.g. Studio 3T or Mongoose);
  • import the project in Eclipse workspace;
  • update the project using Maven;
  • configure on Tomcat "my_app" resource;
  • start Tomcat;
  • go to https://localhost:8080/my_app/ and enjoy!

About

esercizio di studio realizzazione web application in java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published