Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

WutsiTeam/wutsi-blog-web

Repository files navigation

WebApp for the wutsi blog platform

Getting Started

Pre-requisites

  • JDK 1.8
  • MySQL 5.6+
  • Maven 3.6+
  • Google Chrome
  • Setup Maven
    • Setup a token to get access to Github packages
    • Register the repositories in ~/.m2/settings.xml
    <settings>
        ...
        <servers>
            ...
            <!-- Configure connectivity to the Github repositories -->
            <server>
                <id>github-wutsi-blog-client</id>
                <username>YOUR_GITHIB_USERNAME</username>
                <password>YOUR_GITHIB_TOKEN</password>
            </server>
            <server>
                <id>github-wutsi-core</id>
                <username>YOUR_GITHIB_USERNAME</username>
                <password>YOUR_GITHIB_TOKEN</password>
            </server>
            <server>
                <id>github-wutsi-core-aws</id>
                <username>YOUR_GITHIB_USERNAME</username>
                <password>YOUR_GITHIB_TOKEN</password>
            </server>
        </servers>
    </settings>

Installation

  • Download the code and build
$ git clone git@github.com:wutsi/wutsi-blog-web.git
$ cd wutsi-blog-web
$ mvn clean install

Run test

  • Download your chromedriver version there
  • Move this chromedriver in application root
  • Run your tests
mvn clean install -Dheadless=true

Launch the application

$ java -jar target/wutsi-blog-web.jar
  • Navigate to http://localhost:8081

How to

How to format code

mvn antrun:run@ktlint

How to check code formatting error

mvn antrun:run@ktlint-format

How to generate coverage report

mvn jacoco:report