GitXplorerGitXplorer
M

stocktotal

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
e715f6513dbf991c0d02a0b0776da271905e4c4e

Merge branch 'develop'

MMeng-Gen committed 12 years ago
Unverified
e292c5f16d6bf11cd5be89cc088742924f548e7f

Merge branch 'develop' of https://bitbucket.org/Menggen/stocktotal into develop

MMeng-Gen committed 12 years ago
Unverified
dd11aaaa9298e56465091d3c30380b23f46ddbb5

Rebase

MMeng-Gen committed 12 years ago
Unverified
84093a63f3792cdf53df16cd3e1267813a182a87

Merge branch 'release-v1.3'

MMeng-Gen committed 12 years ago
Unverified
f0136a401938ef4bd19c0fd03de1658265459134

add stock selector feature to web portal

MMeng-Gen committed 12 years ago
Unverified
40ab4192184395b59c471941e9ccdb4bac9435c9

Remove incorrect filter of yearly data

MMeng-Gen committed 12 years ago

README

The README file for this repository.

stocktotal


Introduction

  • Main remote repo: BitBucket
  • Mirror remote repo: GitHub
  • stocktotal project contains 3 modules:
    • Source: source Taiwan stock information
    • Report: generate pdf/png report
    • Portal: generate web portal report

Environment

First of all, we need PostgreSQL 9.1 (or higher). Then prepare the following environment for each module. Source module is required if your database is empty.

Source module

Report module

  • Java running environment
  • Apache Ant building environment

Portal module

  • Apache2
  • PHP 5.3 (or higher)

Prerequirement

Source module

Report module

For license issue, we need to prepare the following required jar files:

  • KAIU font: use iReport 4.x to import Windows KAIU font into a jar file, say font-kaiu.jar

Portal module

  • PHP 5 pdo driver for PostgreSQL

Deployment

PostgreSQL

  1. Create a new role stocktotal with password stocktotal
  2. Create a new database stocktotal with owner stocktotal

Source module

  1. Create home directory: $HOME_DIR
  2. Clone: git clone https://bitbucket.org/Menggen/stocktotal.git
  3. Put 7z.exe and 7-zip.dll in directory $HOME_DIR/source/core/thirdparty/sevenzip/
  4. Put wget.exe in directory $HOME_DIR/source/core/thirdparty/wget

Report module

  • Put font-kaiu.jar in directory $HOME_DIR/report/core/lib/

Portal module

  • Copy $HOME_DIR/portal to Apache2 htdocs directory

Executing

  1. Database schema: $HOME_DIR/db/postgres/pg_dump.sql.
  2. Source module: execute $HOME_DIR/source/source_manager.py -h for usage. Note that running source module will consume a lot of time.
  3. Report module: we need to build first: $HOME_DIR/report/builder_manager.py. To generate report, execute $HOME_DIR/report/generator_manager.py -h for usage.
  4. Portal module: open web browser and browse http://localhost/portal/report.php

Questions

If you have any question/suggestion/advice, please mail to plover@gmail.com