Building of web-app and deploying to Tomacat is performed in Intellij Idea. All required libraries included in project lib folder.
SQL script for creating a database table is in DBCreateScript.txt
Add following inside <Context>
tag to context.xml found in Tomcat\conf folder. Don't forget to paste your username/password
<Resource name="jdbc/web_app" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="" password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/web_app"/>
In order to have access to the image you upload add external directory e.g. c:\UploadedImages to Run/Debug Configurations and assign it to application context /images