Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

fabien-roy/glo-4003-spamdul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPAMD-UL

Build Deploy E2E Tests Codecov Dependabot

This is our project for course GLO-4003 at Laval University. We are team 4 : L'inquisition espagnole.

Project setup

Prepare SMTP properties

To send emails, we need to have the file data/emailSmtp.properties set correctly. An example file is provided to present how this file should be made.

Install dependencies and build project

Maven is used as a build automation tool, as well as a dependency manager. To build the application, use :

mvn clean install

Execute app

To execute the application, use :

mvn exec:java

The app will be running on http://localhost:8080/api.

Run tests

Tests are located in src/test/java/ca/ulaval/glo4003. They are all checked pre-commit and during the CI pipeline. Coverage report are generated using Jacoco during the report built phase.

To run unit tests, use :

mvn test

Report code coverage

To report code coverage after testing the app, use :

mvn jacoco:report

This will generate target/site/jacoco/index.html, which can be opened in any browser.

Apply code style

Code style is verified at each commit. To apply Google Java Code Style throughout the source code, use :

mvn git-code-format:format-code -Dgcf.globPattern=**/*

To simply check code style, use :

mvn git-code-format:validate-code-format -Dgcf.globPattern=**/*

API documentation generation

As said above, all requests for this app are listed on our GitHub Pages. We used RAML 1.0. To render documentation, you must install npm dependencies and start the script :

cd /docs
npm install
npm start