- Avogadro Roberto 807387
- Belotti Federico 808708
- Carta Costantino 808417
- Gitlab repository link:
https://gitlab.com/belerico/lets_card
- The project was developed using
Intellij IDEA
, you can directly import project from gitlab on IntelliJ. - Download IntelliJ -->
https://www.jetbrains.com/idea/
- On intelliJ -->
File/new/Project from version control/git
- Insert the link of the gitlab repo.
-
Tested using openjdk version
11.0.1 2018-10-16
-
Operating systems:
Ubuntu v.18.10
andUbuntu v.16.04
- Download docker link:
- The program will look for a db instance on
mysql://localhost:3306
running with a db within it calledassignment3
. - If there is not any db called
assignment3
it will be automatically created - Login command:
mysql -u root -p
- DB access parameters:
- username: root
- password: root
- N.B: you can change configurations in file
src/main/resources/META-INF/persistence.xml
- Install maven :
sudo apt install maven
-
Clone the repo locally
git clone https://gitlab.com/belerico/prosviso_assignment_3.git
-
Move to prosviso_assignment_3 directory
-
Run docker with MySQL v.8 image
docker-compose up -d
-
Install the project
mvn clean install
-
Compile the project
mvn compile
-
Run jetty server
mvn jetty:run
-
After running previous commands open a browser and type:
http://localhost:8080/assignment3/index.jsp
-
You'll be redirected to the index page of the webapp
We have implemented JUnit test cases for testing 'Services' of the application as they abstract DAOs who manage CRUD operations. We used faker classes for testing the application as they were useful to generate entry in rapid way:
src/main/java/com.assignment3/utils/faker
.
-
command:
mvn test
-
Snapshot of the console after running tests