GithubHelp home page GithubHelp logo

adam-choragwicki / currencyconverter_server_cplusplus Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.35 MB

Server part of my currency converter, written in C++20

CMake 1.30% C++ 96.19% C 2.04% Shell 0.06% Python 0.41%

currencyconverter_server_cplusplus's Introduction

Currency converter server

This repository contains the server part of my currency converter, written in C++20.

Linux executable scripts are provided.

Source code for the client is available in:

https://github.com/adam-choragwicki/CurrencyConverter_Client_JavaSwing

How it works

Client sends requests to server using Java sockets API. Server sends responses to the requests using C++ sockets API.

The converter supports about 150 currencies used around the world. Their list can be found in data/currencies_list.json file.

Exchange rates

Immediately after start, the program uses cached exchange rates downloaded from www.floatrates.com, but the exchange rates can be updated by clicking "Update cache" button on client GUI. With good internet connection this process takes about 10 seconds. Please note that after updating, exchange rates for some less popular currencies are not available, because for some reason they are not always listed on www.floatrates.com.

Components

The currency converter consists of server and client.

Server (C++), run as Linux executable

Client (Java Swing), run directly using JAR file

Tests

  • Unit tests (Google Test)
  • Functional tests (Python)

3rd party libraries

Curl https://github.com/curl/curl

RapidJSON https://github.com/Tencent/rapidjson

spdlog https://github.com/gabime/spdlog

Prerequisites

  • Java RE (minimum version 8)

How to run (Linux only)

  1. Clone repository and run start_currency_converter.sh

OR

  1. Download server release zip from:
    https://github.com/adam-choragwicki/CurrencyConverter_Server_Cplusplus/releases/latest/download/executable_linux.zip
  2. Download client release zip from:
    https://github.com/adam-choragwicki/CurrencyConverter_Client_JavaSwing/releases/latest/download/release.zip
  3. Unzip both archives
  4. Run executable_linux/start_currency_converter_server.sh
  5. Run release/start_currency_converter_client.sh

currencyconverter_server_cplusplus's People

Contributors

adam-choragwicki 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.