Giter Club home page Giter Club logo

java-exercise's Introduction

Exercise

Setup Guide

Step 1

Copy env file for docker: cp .env.example .env

Use any editor to open the .env file and provide the values for INFLUXDB_PASSWORD, INFLUXDB_ADMIN_TOKEN, and GRAFANA_PASSWORD.

You can change other settings if you would like.

Step 2

Copy application configuration file cp application-dev.yml.example ./src/main/resources/application-dev.yml

Use any editor to open the ./src/main/resources/application-dev.yml file.

Enter you API key provided by swop.cx to here

service:
  
  #...
  
  swop_cx:
    api_url: "https://swop.cx/rest"
    api_key: "[provide-swop-cx-api-key-here]"

Enter the InfluxDB admin token you have set on Step 1 to here

management:
  influx:
    metrics:
      export:
        
        #...
        
        token: "[value-set-for-INFLUXDB_ADMIN_TOKEN-in-the-env-file]"

Note 1: If you have changed APP_PORT on step 1, you need to update the port number of app.url in this file as well

Note 2: If you would like to use another exchange rate provider - "exchangerate-api.com", you need to update the exchange.provider to be exchangerate-api and enter its API key into servcie.exchangerate_api.api_key

Step 3

run docker compose up -d

Access the apps

url username password
App http://localhost:8080
InfluxDB http://localhost:8086 admin [value-set-on-step-1]
Grafana http://localhost:3000 admin [value-set-on-step-1]

java-exercise's People

Contributors

cavaon-wayne 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.