Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voliveirajr/nebulae-converter
Implementation for a classic currency converter problem from Thoughtworks interviews
https://github.com/voliveirajr/nebulae-converter
cli currency interview-questions java nebulae-converter thoughtworks
Last synced: about 2 months ago
JSON representation
Implementation for a classic currency converter problem from Thoughtworks interviews
- Host: GitHub
- URL: https://github.com/voliveirajr/nebulae-converter
- Owner: voliveirajr
- License: gpl-3.0
- Created: 2015-06-28T00:12:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T13:59:27.000Z (almost 6 years ago)
- Last Synced: 2023-12-16T06:49:26.543Z (about 1 year ago)
- Topics: cli, currency, interview-questions, java, nebulae-converter, thoughtworks
- Language: Java
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Nebulae Currency Converter
=========Nebulae Converter is a fictional product from xTrade company, destinated for all merchants from galaxy to help evaluate the currency for some materials.
*All code is also available on a private bitbucket repository, request to join project
Requirements
----
Java 1.7Maven 3
How to compile
--------------
inside source folder execute
```
mvn clean install
```
Maven will resolve the dependencies, compile and run all tests (some exceptions are expected, they are part of the tests, please wait for 'Build Success')A jar file will be created inside target folder, to generate a jar with all dependencies included please execute:
```
mvn compile assembly:single
```
This command will generate a jar with "jar-with-dependencies" appendedHow to execute
--------------
You should execute the jar giving a path for a file with the currency commands like the example:
```
$ java -jar nebulae-converter-0.0.1-SNAPSHOT-jar-with-dependencies.jar ./input.txt
```
This will result:
```
pish tegj glob glob is 42
glob prok SILVER is 68.00 Credits
glob prok GOLD is 57800.00 Credits
glob prok IRON is 782.00 Credits
I have no idea what you are talking about
```
A file with the commands used on this example could be found on /src/test/resources