Code Monkey home page Code Monkey logo

bhub's Introduction

Bhub challenge

Prerequisites

To run and build this project, the following dependencies must be installed:

Check if java is installed using terminal:

java -version

Should output something like:

java version "21" 2023-09-19 LTS
Java(TM) SE Runtime Environment (build 21+35-LTS-2513)
Java HotSpot(TM) 64-Bit Server VM (build 21+35-LTS-2513, mixed mode, sharing)

Extract maven to a folder and add it to your PATH environment variable.

set PATH=%PATH%;installdir\apache-maven-3.x.x\bin

Check if maven is installed using terminal:

mvn --version

Should output something like:

Apache Maven 3.x.x (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: D:\softwares\apache-maven-3.6.3\bin\..
Java version: 21, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-21
Default locale: pt_BR, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Check if docker is installed using terminal:

docker --version

Should output something like:

Docker version 20.10.8, build 3967b7d

Develop

To build project:

Extract project bhub.zip

cd bhub
mvn clean install docker:build

Build will do most of the steps like:

- Build Java project including unit and integration tests
- Build Docker image with prefix jslsolucoes/bhub:xxx

So you can run project with:

docker run -p 8081:8081 jslsolucoes/bhub:0.0.1

When container is running, open your browser and explore api docs:

http://localhost:8081/swagger-ui/index.html

You can also check for actuactor metrics:

http://localhost:8081/actuator

http://localhost:8081/actuator/health

http://localhost:8081/actuator/prometheus

bhub's People

Contributors

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