Giter Club home page Giter Club logo

internet-shop's Introduction

Internet shop project

This webshop project was developed to get practice with

  1. Java Servlets
  2. Tomcat
  3. JDBC
  4. CSS
  5. database interaction

In this project I implemented

So, this shop works only with Authenticated users (Authentication is implemented via filter). After user is registered it has 'USER' role by default. Authorization is also implemented via filter. In sample case our project has two roles: USER and ADMIN.

USER:

can see all of the products, that exist in the shop (but not deleted, soft deleting is implemented), every USER has one shopping cart, can add product to cart and then complete order, can see all of its orders and details of them.

ADMIN:

role, set by system administrator, can delete user, see all users, see all orders, delete order, add product, delete product. Admin does not have a cart and can not create order.

If you want to enter as Admin, there's address /injectData which will add new user with Admin's role

login: admin

password: 346558

But first of all, there's file init_db.sql which holds sql script for creating appropriate DB. So run this code in MySQL on your machine first. Also, your database should have UTC time zone.

Requirements

To run this project you need to install the following on your computer:

  • Java
  • Apache
  • Tomcat
  • MySQL

Tested on

This project was tested with the following software:

  • Intellij IDEA Ultimate Edition
  • Apache Tomcat 9.0.37
  • MySQL 8.0.20

internet-shop's People

Contributors

floriangeyer21 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.