Project developed for the final exam of the course named Information Technology for the Web (Tecnologie Informatiche per il Web) held by Professor Piero Fraternali at Politecnico di Milano.
Explore the docs »
Report Bug
This project has been developed as final assignment for the Information Technology for the Web course held by Professor Piero Fraternali at Politecnico di Milano.
The objective of this project was to build a Rich Internet Application using Java servlets server-side and exploting JavaScript and AJAX requests on client-side.
The application is a simple collection of images grouped in albums. The user is able to select one album and to browse through the list of images in order to see a full-size version and a description and, if desired, leave a comment.
The system is based on a simple MySQL database that only stores the path in which retrieve the images in the web server. The login credentials are stored in plain text.
Another version of the same project has been developed with server-side rendering and can be found at this link.
To get a local copy up and running follow these simple steps.
This is a simple guide, provided by Professor Piero Fraternali, to prepare the environment in which the application will run.
-
Clone the repo
git clone https://github.com/lorenzofratus/ImageGalleryRIA.git
-
Create a new scheme named
db_image_gallery_ria
into MySQLWorkbench -
Dump the file
ImageGalleryRIA.sql
into the newly created scheme to populate it -
Import the project in Eclipse
- Go to
File
>Open Projects from File Systems...
- Click on the button
Directory...
and select the main folder of the repo - Click on the button
Finish
- Go to
-
Link the database to the project
- Navigate the project tree in
WebContent
>WEB-INF
- Open
web.xml
- Search the following terms and replace them with the correct parameters (from MySQLWorkbench):
DB_PORT
,DB_USER
,DB_PASSWORD
- Navigate the project tree in
-
Run the project
- Right click on the project name in the Eclipse tree
- Select
Run As
>1 Run on Server
- Click on the button
Finish
-
The application can by found at the address
localhost:8080/ImageGalleryRIA
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/lorenzofratus/ImageGalleryRIA