Implementing the same web api using different back-end technologies.
- Java 17 sdkman.io/
- Rust rustup.rs/
- Git
- Docker (and Docker Compose)
The REST Api implements two endpoints:
platforms
: to manage game platforms (consoles)games
: to manage games
More information are available here
git clone https://github.com/CarloMicieli/console-wars.git
cd console-wars
docker compose up postgres
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
Service | Port number |
---|---|
java-micronaut-jdbc |
8000 |
java-micronaut-r2dbc |
8002 |
java-spring-mvc |
8004 |
kotlin-spring-webflux |
8006 |
rust-actix-web |
8008 |
This repository is following the conventional commits practice.
chmod +x .githooks/commit-msg
git config core.hooksPath .githooks
The hook itself can be found in .githooks/commit-msg
.
Install commitizen
pip install commitizen
and then just use it
cz commit
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.