Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
/ ImageGallery Public archive

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.

Notifications You must be signed in to change notification settings

lorenzofratus/ImageGallery

Repository files navigation

Image Gallery


Image Gallery

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

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

Home Page Screenshot

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 web application using Java servlets and exploting server-side rendering using Thymeleaf.

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.

Another version of the same project has been developed as Rich Internet Application and can be found at this link.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is a simple guide, provided by Professor Piero Fraternali, to prepare the environment in which the application will run.

Download PDF

Installation

  1. Clone the repo

    git clone https://github.com/lorenzofratus/ImageGallery.git
  2. Create a new scheme named db_image_gallery into MySQLWorkbench

  3. Dump the file ImageGallery.sql into the newly created scheme to populate it

  4. 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
  5. 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
  6. 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
  7. The application can by found at the address localhost:8080/ImageGallery

Usage

License

Distributed under the MIT License. See LICENSE for more information.

Contact

About

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.

Topics

Resources

Stars

Watchers

Forks