Alterrae-backend

A RESTful API for Sistearth v4 implemented in Java


Project maintained by mbarberot Hosted on GitHub Pages — Theme by mattgraham

Alterrae Backend

Build Status Coverage Status

A RESTful API for Alterrae game, implemented in Java

How to use

What you need

Build

mvn clean install

This will build, test, package code and build docker image.

Run

docker-compose up or docker-compose start

This will run both server and databse container + adminer to manage db

Useful tools

Sonar

Source code analysis tool.

  1. Run Sonarqube server with docker
    • The first time : docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube:5.1
    • Nex time : docker start sonarqube
  2. Launch analysis with maven
    • mvn sonar:sonar

Adminer

PHPMyAdmin-like, but lighter

  1. Run with docker : docker run -d -p 8888:80 --link alterraebackend_database_1:database clue/adminer
  2. Go to http://localhost:8888
  3. Login using db credential and host will be 'database'.

Keytool (provided by java jdk)

Creating keystore (example for the test keystore) :

Tools

Dev

Deployment

Reason (vs PHP / Symfony backend)