Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 2.5 KB

README.md

File metadata and controls

82 lines (51 loc) · 2.5 KB

Internet shop

Quality Gate Status

Also, you can visit site

Table of Contents

Short description

In this project I attempted to implement basics functions of an online store. There are two type of roles in that store: USER and ADMIN. Each of them has the following are access rights:

  • for Admin

    • get list of users/items/orders;
    • add/remove user, order or item;
  • for User

    • get list of all items;
    • add/remove item to bucket;
    • complete order;
    • get your orders history;

For security purposes regardless of role there is obligatory procedure of login/registration to have access to main resources of the web-site. It is enhanced as well by using hashing of passwords with "salt". This way even breached, users data won't be exposed.


  • Java 11
  • Maven 4.0.0
  • javax.servlet 3.1.0
  • jstl 1.2
  • mysql 8.0.20
  • log4j 1.2.17
  • SonarCloud Scan v1.2
  • maven-checkstyle-plugin

Open the project in your IDE.

Add it as maven project.

Configure Tomcat.

add sdk 11.0.3.

Add sdk 11.0.3 in project struсture.

Create a schema "internet_shop" in any SQL database.

Use file jv-internetshop.src.main.resources.init_db.sql to create all the tables required by this app.

At jv-internetshop.util.ConnectionUtil class use username, password and name of DB to create a Connection.

Change a path in jv-internetshop.src.main.resources.log4j.properties. It has to reach your logFile.

Create your first user using registration form.

There is no option to create user with ADMIN access rights, so you have to do that manually in the database.

A main page http://localhost:8080/


Advanced

Configure SonarCloud


Recommendations

Here configure your project with external CI, i was used Circle CI All tutorials u can find at project > Administration > Analysis Method > your preferred method

Authors

Kudimov_Yehor