Skip to content

adelaveres/bookstore-spring-angular

Repository files navigation

BookStore Application

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.

Functionalities

• 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:

  1. install java- JDK 1.7 or above https://java.com/en/download/

  2. download and install the Eclipse IDE for Java EE Developers https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/neon3

  3. 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.zip
    

    3.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.

  4. 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:

Login: alt tag

Login - wrong password: alt tag

Login - employee: alt tag

Login - admin: alt tag

Employee - start page: alt tag

Employee - search boks by title: alt tag

Employee - search books by author: alt tag

Employee - search books by genre: alt tag

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

Employee - before selling copies of first book: alt tag

Employee - after selling copies of first book: alt tag

Admin - start page: Employees: alt tag

Admin - adding an Employee with already existing PNC alt tag

Admin - before adding Employee: alt tag

Admin - after adding Employee: alt tag

Admin - updating employee Andreescu Sanziana - before alt tag

Admin - updating employee Andreescu Sanziana - click on Edit button alt tag

Admin - updating employee Andreescu Sanziana - change employee name alt tag

Admin - updating employee Andreescu Sanziana - after: alt tag

Admin - reset form button (having a leftover success message and input in the form fields) alt tag

Admin - reset form button - after reset: alt tag

Admin - before delete - Andrei Musat: alt tag

Admin - message after delete - Andrei Musat: alt tag

Admin - list after delete - Andrei Musat: alt tag

Admin - books page: alt tag

Admin - before adding a book: alt tag

Admin - after adding a book: alt tag

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

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

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

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

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

Admin - delete book - before: alt tag

Admin - delete book - after list: alt tag

Admin - delete book - after message: alt tag

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

Admin - the generated pdf Report alt tag

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

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

About

BookStoreApp created with SpringBoot, AngularJS, maven.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors