volodink / shop-cart-java

A simple project to simulate the shopping cart of an online store and an authentication service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shop-cart-java

A simple project to simulate the shopping cart of an online store and an authentication service

admin run

image

user run

image

Necessary dependencies

Java Gradle

Installing Gradle - Linux

curl -s "https://get.sdkman.io" | bash
sdk install gradle 8.6

Building and launching a project

git clone https://github.com/MichaelOskin/shop-cart-java.git
cd shop-cart-java && chmod +x build.sh && ./build.sh

Docker run

docker build -t yourImageName .
docker run -it yourImageName

Initializing paths

Set the required project paths. To log in to the administrator, use the following username&password

database.sqlite.path=data.db
json.path=devices-latest.json
script.sql.path=db/init.sql
authentication.username=admin
authentication.password=Admin123

Technologies used in the project

SQLite JDBC is a library for accessing and creating SQLite database files in Java

This library is a port of Ruby's faker gem (as well as Perl's Data::Faker library) that generates fake data

Jackson has been known as "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"

Functionality

Sqlite database

image

Features of implemented entities:

Administrator User
1. Executing SQL queries 1. Replenishment of the balance
2. Output of a data sample 2. Add/remove products from cart
3. Automatic creation of tables 3. Buy&save shopping cart history
4. Automatic data generation 4. View the product catalog

About

A simple project to simulate the shopping cart of an online store and an authentication service

License:MIT License


Languages

Language:Java 96.9%Language:Dockerfile 2.2%Language:Shell 0.9%