Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.28 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.28 KB

README

This is open source project for personal use and experiments.

The main use of the software is to deliver and satisfy its creators personal need but it also shares the code with the world.

How do I get set up?

  • Download and install tomcat 8 & mysql
  • Configure data source jdbc/trackerDB in server.xml
    For example:
<Resource
    name="jdbc/trackerDB"
    auth="Container"
    type="javax.sql.DataSource"
    factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
    timeBetweenEvictionRunsMillis="34000"
    validationQuery="SELECT 1"
    testOnBorrow="true"
    username="youusername"
    password="yourpassword"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/money_tracker"
 />
  • Add resource link in context.xml of the tomcat server
    For example:
<ResourceLink name="jdbc/tracker"
    global="jdbc/trackerDB"
    auth="Container"
    type="javax.sql.DataSource"
/>
  • Use maven for building the project
  • Deploy the WAR file generated in sourceRoot/webapp-spring/target
  • Deployment instructions
  • Any other java application servers would be working but some configuration may require changes. In order to change data source change the value of data source name in the DataSource bean in Application class.