Spring Boot application, using AngularJS, Bootstrap, CSS for the user-interface, Maven for dependencies. The application is built for the employees and the administrator of a BookStore.
• Ability to authenticate either as an employee, or as an admin, using a username and a password, via the login page.
• Ability to do the following, while logged in as an employee:
- access only the login page or stay on the current page
- view the list of existing registered books, and their details
- search books by title, author, and genre
- sell a number of copies of an existing book
• Ability to do the following, while logged in as an admin:
- access only the login page, the employee page, and the books page
- on the employee page:
- view the list of existing employees, and their details
- update a selected employee
- delete a selected employee
- add a new employee - only possible if introducing a personal numerical code different from the existing ones.
- on the books page:
- view the list of existing books, and their details
- update a selected book
- delete a selected book
- add a new book – only possible if both title and author differ from any of the existing books
- generate .pdf and .csv reports with the out-of-stock books
Installation steps:
-
install java- JDK 1.7 or above https://java.com/en/download/
-
download and install the Eclipse IDE for Java EE Developers https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/neon3
-
install maven- download the binary distribution: https://maven.apache.org/download.cgi
3.1. unzip the archive:
Unix-based operating systems (Linux, Solaris and Mac OS X) tar zxvf apache-maven-3.x.y.tar.gz Windows unzip apache-maven-3.x.y.zip3.2. A directory called "apache-maven-3.x.y" will be created.
3.3. Add the bin directory to your PATH, eg:
Unix-based operating systems (Linux, Solaris and Mac OS X) export PATH=/usr/local/apache-maven-3.x.y/bin:$PATH Windows set PATH="c:\program files\apache-maven-3.x.y\bin";%PATH%3.4. Make sure JAVA_HOME is set to the location of your JDK
3.5. Run "mvn --version" to verify that it is correctly installed.
-
M2E plugin for Eclipse install the latest M2Eclipse release by using the following update site from within Eclipse: http://download.eclipse.org/technology/m2e/releases
Accessing application:
● Employee View:
--username: employee
--password: empl
● Admin View:
--username: admin
--password: adm
Use cases screenshots:
Employee - search boks by title:

Employee - search books by author:

Employee - search books by genre:

Employee - selling books, but there are insufficient books in stock:

Employee - before selling copies of first book:

Employee - after selling copies of first book:

Admin - start page: Employees:

Admin - adding an Employee with already existing PNC

Admin - before adding Employee:

Admin - after adding Employee:

Admin - updating employee Andreescu Sanziana - before

Admin - updating employee Andreescu Sanziana - click on Edit button

Admin - updating employee Andreescu Sanziana - change employee name

Admin - updating employee Andreescu Sanziana - after:

Admin - reset form button (having a leftover success message and input in the form fields)
.jpg)
Admin - reset form button - after reset:

Admin - before delete - Andrei Musat:

Admin - message after delete - Andrei Musat:

Admin - list after delete - Andrei Musat:

Admin - adding book but a book with same title & author already exists

Admin - update book - author: Dava Sobel - before:

Admin - update book - author: Dava Sobel - click on Edit button:

Admin - update book - author: Dava Sobel - change author name:

Admin - update book - author: Dava Sobel - after:

Admin - delete book - after list:

Admin - delete book - after message:

Admin - generate pdf Report with out-of-stock books:

Admin - the generated pdf Report

Admin - generate csv Report with out-of-stock books:

Admin - the generated csv Report openned with Microsoft Excel editor:









