/console-wars

Implementing the same web api using different back-end technologies

Primary LanguageJavaApache License 2.0Apache-2.0

Console Wars

License GitHub last commit

Actix Web CI Micronaut JDBC CI Micronaut R2DBC CI Spring MVC CI Spring WebFlux CI

Implementing the same web api using different back-end technologies.

Requirements

The REST Api

The REST Api implements two endpoints:

  • platforms: to manage game platforms (consoles)
  • games: to manage games

More information are available here

How to run

  git clone https://github.com/CarloMicieli/console-wars.git
  cd console-wars

Running a Postgres Database

  docker compose up postgres

Build the docker images

  • java-micronaut-jdbc: ./gradlew java-micronaut-jdbc:dockerBuildNative
  • java-micronaut-r2dbc: ./gradlew java-micronaut-r2dbc:dockerBuild
  • java-spring-mvc: ./gradlew java-spring-mvc:bootBuildImage
  • kotlin-spring-webflux: ./gradlew kotlin-spring-webflux:bootBuildImage

The Services

Service Port number
java-micronaut-jdbc 8000
java-micronaut-r2dbc 8002
java-spring-mvc 8004
kotlin-spring-webflux 8006
rust-actix-web 8008

Conventional commits

This repository is following the conventional commits practice.

Enforcing using git hooks

  chmod +x .githooks/commit-msg
  git config core.hooksPath .githooks

The hook itself can be found in .githooks/commit-msg.

Using Commitizen

Install commitizen

  pip install commitizen

and then just use it

  cz commit

License

Apache 2.0 License

   Copyright 2023 Carlo Micieli

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.