Skip to content

eMTeeWare/emtee-showdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eMTee Showdown

Table of Contents

Currently, eMTee Showdown solves one very specific problem: Help choose the next tv show to watch.

To do so, visiting /update retrieves the content of a trakt.tv list containing seasons of tv shows. (There are some hardcoded sample shows so that it also works without a trakt.tv account for demonstration purposes.)

The retrieved seasons are then available at the /seasons endpoint (shown here in dark mode). Everybody taking part in the choosing can select seasons to be added to the selection pool.

Example of using the seasons endpoint featuring the dark mode.

The /selection endpoint will display all selected seasons as face-down cards than can be dismissed or chosen (shown here in light mode).

Example of using the selection endpoint featuring the light mode.

Sure. If I don't lose my drive. Some ideas can be found in the issues or in the release planning.

I am also thinking about user management, workflows, automatic selection modes and much more. If you have ideas, feel free to add them as an issue.

If everything goes real well, I also have some ideas to generalize this service to a universal decision-making helper by allowing to configure the use of arbitrary searches for the selections. We'll see.

To run, eMTee showdown needs the following properties:

You can provide these values in different ways, see https://quarkus.io/guides/config. One example to start it during development would be:

mvn -Dtrakt.api-key=XXXXXXXXXXXX "-Dtrakt.bearer-token=Bearer XXXXXXXXXXXX" -Dtrakt.user-name=emteeware -Dtrakt.list-name=test-is quarkus:dev

This project uses Quarkus, the Supersonic Subatomic Java Framework.

If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./mvnw quarkus:dev

Packaging and running the application

The application is packageable using ./mvnw package. It produces the executable emtee-showdown-0.1-SNAPSHOT-runner.jar file in /target directory. Be aware that it’s not an über-jar as the dependencies are copied into the target/lib directory.

The application is now runnable using java -jar target/emtee-showdown-0.1-SNAPSHOT-runner.jar.

Creating a native executable

You can create a native executable using: ./mvnw package -Pnative.

Or you can use Docker to build the native executable using: ./mvnw package -Pnative -Dquarkus.native.container-build=true.

You can then execute your binary: ./target/emtee-showdown-0.1-SNAPSHOT-runner

If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image-guide .