Giter VIP home page Giter VIP logo

touristons's Introduction

Setup

> In order to run tests, environment variable for the application should be set as TONS_HOME
> Environment variable must point to folder where the input JSON files will be located
> For the tests, they are located inside "files" under the application folder, so TONS_HOME should look like <PATH_TO_YOUR_APPLICATION_FOLDER>/files

Mac OS X example:
	run:
		edit ~/.bash_profile
	add lines:
		export TONS_HOME=/Users/bgvoka/dev/tons/files
		export PATH=$PATH:TONS_HOME
	run:
		source ~/.bash_profile
	restart system so it should load the variable

How To Run "tons" application

> First a jar file must be created via "mvn clean install or mvn package" command within the application directory. (If TONS_HOME is not set, run "mvn clean install -DskipTests" to skip the tests.)
> After the jar is built, go into target/ folder
> Run the application with command "java -jar tons-0.0.1-SNAPSHOT.jar <PATH_TO_INPUT_FILE>/<FILE_NAME>.json <PATH_TO_OUTPUT_FILE>/<FILE_NAME>.json"
> Output file should be created on specified output path as 2nd parameter

Example

> In tests folder, under rs/tons/AppTest.java there is testMe() method that runs the example with the json file from pdf as if it was ran from command line with specified arguments.
> In tests folder, under rs/tons/AlgorithmTest.java are the tests for the algorithm for given example with A->B...

touristons's People

Contributors

mladibejn avatar

Watchers

James Cloos 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.