A RESTful API for Alterrae game, implemented in Java
- Java 8
- Maven
- Docker & docker-compose
- Source code
mvn clean install
This will build, test, package code and build docker image.
docker-compose up
or docker-compose start
This will run both server and databse container + adminer to manage db
Source code analysis tool.
- 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
- Launch analysis with maven
*
mvn sonar:sonar
PHPMyAdmin-like, but lighter
- Run with docker :
docker run -d -p 8888:80 --link alterraebackend_database_1:database clue/adminer
- Go to http://localhost:8888
- Login using db credential and host will be 'database'.
Creating keystore (example for the test keystore) :
- run
keytool -keystore keystore -alias alterrae -genkey -keyalg RSA
- use password :
alterrae
- At question "What is your first and last name?" put your url (ie: api.alterrae.com)
- Java
- Spark framework (light, easy and simple)
- Guava
- Sql2o
- Jackson
- Lombok
- JUnit
- Docker
- docker-compose
- MariaDB (+ official docker image)
- KISS
- No more "magic" framework (thinking to you JEE and Symfony)
- Dev comfort : explicit types, easier to monitor/debug, maven