Giter VIP home page Giter VIP logo

internet-shop's Introduction

Internet-shop

Table of Contents

Project purpose

This project is a simple version of internet shop.


It has the following functions:

  • Login and registration forms.
  • Shopping cart and order services
  • Two roles: User and Admin

Functions for users with an ADMIN role only:

  • add product to the store
  • delete products from the store
  • view a list of all users
  • delete users from the store

Functions for users with a USER role only:

  • add products to user's shopping cart
  • delete products from user's shopping cart
  • view all user's orders
  • complete orders

Project structure

  • Java 11
  • Maven 4.0.0
  • javax.servlet-api 3.1.0
  • jstl 1.2
  • log4j 1.2.17
  • mysql-connector-java 8.0.20
  • maven-checkstyle-plugin 3.1.1

For developer

To run this project you need to install:


Add this project to your IDE as Maven project.

Add Java SDK in project structure.

Configure Tomcat:

  • Add artifact
  • Add Java SDK

Change a path to your Log file in src/main/resources/log4j.properties on line 9.


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/com/ksv/internetshop/util/ConnectionUtil.java class on 19-20 lines.

Run the project.
Register and log in with your login and password.
On the home page, click once "Inject test data into the DB". By default, two users will be generated:

  • with an ADMIN role (login = "admin", password = "admin")
  • with a USER role (login = "bob", password = "1234")

Author

Serhii Kinashchuk

internet-shop's People

Contributors

serg-ksv avatar

Watchers

James Cloos avatar  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.