This project is a simple version of internet shop.
This shop has basic functions for online store such as:
- Registration and log in forms
- Shopping cart and order services
- Two roles: User and Admin
This project has authentication and authorization filters, DAO and Service layers, Servlets and JSP pages.
DAO layer based on MySQL DB.
- Java
- Maven
- MavenCheckstylePlugin
- javax.servlet
- javax.jstl
- mysql-connector-java
- log4j
To run this project you need to install:
Add this project to your IDE as Maven project.
Add Java SDK 11 in project structure.
Configure Tomcat:
- Add artifact
- Add Java SDK 11
Change a path to your Log file in src/main/resources/log4j.properties on line 12.
To work with MySQL you need to:
- Use file src/main/resources/init_db.sql to create schema and all the tables required by this app in MySQL DB
- Change username and password to match with MySQL in src/main/java/dev/internetshop/util/ConnectionUtil.java class on 19 line
Run the project:
Main page is at URL: .../{context_path}/index
