Git Product home page Git Product logo

es-labproj-p3g3a's Introduction

CoinRanking

Software Engineering Lab Project - 2019/2020

A mainly exploratory springboot app, deployed using docker, which uses the Coin Ranking API to show a cryptocurrency rank!

Developed by Jorge Catarino (JPCatarino)

Deploy:

PowerShell:

./mvnw clean package -DskipTests; docker-compose up -d

Bash:

./mvnw clean package -DskipTests & docker-compose up -d

After a successful deploy, the app will be available on http://localhost:8080/coinRanking-0.0.1-SNAPSHOT

Notes on deploy:

The CoinRanking app uses the following ports:

APP - 8080:8080, 4848:4848

DB - 3306:3306

KAFKA - 9092:9092

ZOOKEEPER - 2181:2181

Issues and other problems

  1. Tests must be skipped on compile because maven tries to connect with the database and kafka server. Even if both containers are running, this is bound to fail on windows OS (where this was developed) cause they can't connect directly to docker networks.

  2. Sometimes, the kafka image will start consuming lots of resources and crash docker. I'm unsure what causes this behaviour! My suspicion is that it happens when the app is ready before the kafka server.

User Manual:

  1. Go to http://localhost:8080/coinRanking-0.0.1-SNAPSHOT

  2. You'll be greeted with a index page where you can select between "Check Rank" and "Check Logs". That's pretty much it!

It's also possible to publish a message by sending a POST request to http://localhost:8080/coinRanking-0.0.1-SNAPSHOT/kafka/publish

es-labproj-p3g3a's People

Contributors

jpcatarino avatar

Watchers

 avatar  avatar  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.