A simple project to simulate the shopping cart of an online store and an authentication service
curl -s "https://get.sdkman.io" | bash
sdk install gradle 8.6
git clone https://github.com/MichaelOskin/shop-cart-java.git
cd shop-cart-java && chmod +x build.sh && ./build.sh
docker build -t yourImageName .
docker run -it yourImageName
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
1. sqlite-jdbc
SQLite JDBC is a library for accessing and creating SQLite database files in Java
2. java-faker
This library is a port of Ruby's faker gem (as well as Perl's Data::Faker library) that generates fake data
3. jackson
Jackson has been known as "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"
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 |