Git Product home page Git Product logo

afcarl / trade-manager-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trade-manager/trade-manager-web

0.0 0.0 0.0 18.43 MB

This is the trade manager project built on Maven and Spring boot. This project is WIP. The front end will be React/Redux and the broker API support is Interactvie Broker Java API + Barchart OnDemand (this replaces Yahoo Finance API which no long exists)

Home Page: http://trade-manager.blogspot.com/

Java 98.76% Batchfile 0.39% Shell 0.01% JavaScript 0.74% CSS 0.06% HTML 0.02% SQLPL 0.02%

trade-manager-web's Introduction

tags projects
trade
spring-data-rest
spring-data-jpa
spring-hateoas
spring-security
spring-boot

Trade Manager

Environment

Maven 3.2 or higher, Git, MySQL 5.6.24 or higher, Java 1.8.x recommend latest version, IntelliJ open source version

1/ To clone the repo from the command line

2/ Add the tools-1.8.0.jar to the .m2 repo. From the project dir

$mvn install:install-file -Dfile=lib/tools-1.8.0.jar -DgroupId=com.sun -DartifactId=tools -Dversion=1.8.0 -Dpackaging=jar

3/ Add the Maven Wrapper. From project dir run

$mvn -N io.takari:maven:wrapper

4/ Change the following properties in the project dir db.properties file: db-dba.username(root is default)/db-dba.password. Note the db-dba.username must have schema create privaledges i.e. root. The other values can be changed if so desired.

5/ Create the MySQL DB. From project dir, cd web, then run (make sure $JAVA_HOME is version 1.8, check with $>echo $JAVA_HOME).

>$mvn clean install

>$ cd web

web>$ mvnw initialize sql:execute

Note demo data for 2016 is added by default comment out the file in the web/pom.xml if not needed.

6/ To run the old Swing UI. From project dir, cd web, then run

web>$mvnw -Duser.timezone=America/New_York -Dlog4j.configuration=file:../config.properties exec:java

OR the new Spring boot Web app

web>$mvnw spring-boot:run Note WIP so not much to see yet

7/ Open IntelliJ and import the parent pom.xml from the project dir. You can now set run configurations for 6/

In IntelliJ, Edit Configuration add a Maven set working dir to /web then set command line to above without mvnw.

If you wish to deploy the app to another director after building it complete the following:

a/ Copy config.properties, web/target/trade-manager-web-0.0.1-SNAPSHOT.jar, strategies dir and web/pom.xml to your new directory.

b/ Change the following config.properties values to trade.csv.default.dir=temp and trade.strategy.default.dir=strategies

c/ To run the old Swing UI from the command line"

>$mvn exec:java -Dexec.mainClass="org.trade.ui.TradeAppMain" -Dexec.args="-Duser.timezone=America/New_York -Dlog4j.configuration=config.properties"

trade-manager-web's People

Contributors

trade-manager 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.