Giter Site home page Giter Site logo

ayazkhuraishi / wow-auctions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radcortez/wow-auctions

0.0 0.0 0.0 1.21 MB

World of Warcraft Auctions using Java EE Batch - JSR-352

License: GNU General Public License v3.0

Java 76.48% HTML 3.11% CSS 0.49% JavaScript 19.92%

wow-auctions's Introduction

World of Warcraft Auctions - Batch Application

Pre Requisites

Project Structure

The project uses Blizzard API for the popular game World of Warcraft. It downloads the World of Warcraft Auction House data and provides statistics about items prices evolution. Since the data may be huge, the project uses Batch processing to analyze the information.

  • batch - the batch code that integrates with Blizzard API and process the data.
  • quarkus-batch - integration with Quarkus to support the JBatch implementation (with Jberet).
  • itest - integrations tests.

Libraries and Infra

The project uses Quarkus as the Java stack, and the built in SmallRye components as the MicroProfile implementations.

The required infrastructure provided by Docker includes:

  • Postgres Database

Build

Use Maven to build the project with the following command from the project root:

mvn install

Run

Start the required infrastructure to run the application from the project root:

docker-compose up -d

To execute the Batch Application, run the following command from each batch folder root:

java -Dapi.battle.net.clientId=[REPLACE_ME] -Dapi.battle.net.clientSecret=[REPLACE_ME] -jar target/auctions-batch-runner.jar

Remember to replace the placeholders in the command by the real clientId and clientSecret required to access Blizzard API.

Test the Applications

The Application provides a REST endpoint to call the required batch processes.

Prepare

The Prepare Batch is used to retrieve the initial metadata and create the Batch structure to process auction data:

curl -v -XPOST http://localhost:8080/jobs/prepare-job/start

Process

The Process Batch process the auction data for a set of Realms. Requires the region, and the realm id to process:

curl -v -XPOST -H 'Content-Type:application/json' http://localhost:8080/jobs/process-job/start -d '{"api.blizzard.region":"us","connectedRealmId":11}'

This will process the auction data for the Realm Tichondrius in the US region. It may take a while to finish. After the processing completes, you can check the AUCTIONSTATISTICS table in the database for the statistics data.

Blog posts

wow-auctions's People

Contributors

radcortez avatar dependabot-preview[bot] avatar dependabot[bot] avatar ivannov avatar djoudjou avatar nuzayats avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.