Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 2.27 KB

File metadata and controls

85 lines (60 loc) · 2.27 KB

Web Technologies Project @ PoliMi, 2025


Vlad Raileanu (@rlvlad) · Vittorio Robecchi (@victuarvi)


Usage

To run the project you need to install all the dependencies – which are for the most part managed of by Maven – and configure MariaDB.

There are already included Tomcat configuration that:

  • Test the database connection (according to the default one)
  • Build the artifacts
  • Deploy the server

There is one for the HTML subproject and one for the RIA1.

Tip

Look in the documentation: the process is meticulously described.

MariaDB configuration

Start MariaDB:

sudo systemctl start mariadb

Then access MariaDB console:

sudo mariadb

and create the database:

CREATE DATABASE db_name;
# add privileges
GRANT ALL PRIVILEGES ON db_name.* TO `user`@'hostname';
exit;

Note

The project assumes the user tiw@localhost is accessing the tiw database. If needed, change the src/main/webapp/WEB-INF/web.xml file in the desidered subproject.

And finally load the SQL file:

mariadb --user NAME --password < *.sql

where NAME = user from the step before.

Tech stack 🖥️

Footnotes

  1. It's called JS for legacy purposes; its folder too.