Hello, anyone! This is my realization of internet shop, the purpose of that project was to create a simple web application focusing on back-end in Java, using and improving knowledge in different technologies of web-development.
Talking about structure, project implements MVC pattern and have 3-Tier architecture:
- Data Tier - MySQL DB and DAO's;
- Application Tier - business logic in Java services;
- Presentation Tier - Servlet Controllers, JSP pages and Bulma CSS for simple UI.
- Java 11
- Servlet 3.1
- MySQL 8.0
- Hibernate 5.4.5
- Maven 4.0
- Tomcat 9.0.24
- Log4j 1.2.17
- Bulma CSS
- Download project from this repository and add to IDE as Maven project;
- Add project to your IDE as Maven project;
- Install and configure Tomcat;
- Install and configure MySQL;
- Check same properties in hibernate.cfg.xml;
- Run init_db.sql in database;
- Make sure all dependencies from pom.xml are loaded;
- [Optional] If you want to see logs - set log file in log4j.properties;
- Finally run it!
First of all, you have to login. By default, you already have users (login: admin, pass: 123) with administrative rights, and (login: user, pass: 123). Otherwise you can always create a new user via registration form.
Now you can freely go shopping!