Git Product home page Git Product logo

vishkar.wow's Introduction

Vishkar.Wow

Project to mine data out of WoW auction house using Kafka. This is more of a proof of concept on C# with Kafka but with the World of Warcraft auction house as the main driver.

Setup

You will need to get Kafka running to get this project running. Many of the tutorials assume, cloud, or linux or a java-first environment. I am focused on a windows desktop based environment with Visual Studio.

You will need to have Java installed. To determine if java is installed open a command prompt and enter java -version. If it installed you will get a prompt similar to below:

C:\>java -version

openjdk version "11.0.16.1" 2022-08-12 LTS
OpenJDK Runtime Environment Microsoft-40648 (build 11.0.16.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-40648 (build 11.0.16.1+1-LTS, mixed mode)

If that doesn't work, run the Visual Studio Installer and try and get it installed through that.

Next you will need to get Kafka working.

Download kafka: https://kafka.apache.org/downloads

You will need 7zip or some other tool to extract tgz and tars.

You will likely need to "unblock" the file and then extract the tgz file to a tar file.

kafka_2.13-3.4.0.tgz ->
  kafka_2.13-3.4.0.tar

I created a folder C:\kafka

Next extract the tar to that folder C:\kafka\kafka_2.13-3.4.0\

You need to run something called zookeeper which seems to be some sort of host that can run a java app (i.e. kafka). To make it easier to run, add the kafka path to the environment variables.

c:\kafka\kafka_2.13-3.4.0\bin\windows

This makes all the batch files (.bat) in the directory easier to launch from the command prompt. Essentially a usings but for the command prompt.

Browse to the kafka version directory and run the following command.

c:\kafka\kafka_2.13-3.4.0>zookeeper-server-start config/zookeeper.properties

This runs the zookeeper-server-start.bat file fron the ...bin\windows you mapped to earlier, using the configuration located at c:\kafka\kafka_2.13-3.4.0\config\zookeeper.properties.

Finally, we can run kafka. Open another command prompt window, browse to the kafka version directory and run the following command.

c:\kafka\kafka_2.13-3.4.0>kafka-server-start config/server.properties

To stop execution of either service, have that command prompt be the active window and hit Ctrl-C and then y to confirm to stop the execution of the batch file.

You will need to create a topic, run the following commands (with kafka running). The second command will confirm that the --create was successful.

kafka-topics --create --topic commodities-raw --bootstrap-server localhost:9092
kafka-topics --create --topic commodities --bootstrap-server localhost:9092 --partitions 10
kafka-topics --list --bootstrap-server localhost:9092

TODO store the kafka config

Blizzard Setup

Get a clientId and Secret.

Use the following config settings to store the WoW secrets

  • VishWow_ClientId
  • VishWow_ClientSecret

vishkar.wow's People

Contributors

ondrelogin avatar

Watchers

 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.