Skip to content

MrNopi/internet-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project purpose

This is a template for creating an e-store.

It has login and registration forms as well as main page of the store.

There are controllers for working with items, users, orders and buckets:

  1. Inject - for injection mock data,

  2. Registration - for registering new users,

  3. Login - for user authentication and authorization,

  4. Users - for displaying and manipulating users, which was registered(such as deleting). Available for an ADMIN only,

  5. Items - for manipulating items in stock(such as creating or deleting specify item),

  6. Bucket - for displaying and manipulating items in user’s bucket. Available for common USER only,

  7. Orders - for displaying user’s order history. Available for a common USER only,

  8. Logout - for logging out.

Project Structure

  • Java 11
  • Maven 4.0.0
  • javax.servlet 3.1.0
  • jstl 1.2
  • log4j 1.2.17
  • maven-checkstyle-plugin
  • JDBC

For developer

Open the project in your IDE.

Add it as maven project.

Configure Tomcat:

  • add artifact;
  • add sdk 11.0.3 or later

Configure the project

  1. Add sdk 11.0.3 in project struсture.

  2. Initialize data base copying code from init_db.sql, which located in project_name/src/main/resources/init_db.sql

  3. At internet-shop.src.main.java.Factory class use username and password for your DB to create a Connection.

  4. Change a path in internet-shop.src.main.java.resources.log4j.properties. It has to reach your logFile.

  5. fill up database with items, users and everything you need....

  6. Run the project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages