Shopbill
This web application is meant to provide an interface for the user to maintain his list of todo items. The salient features are automatically figuring out the time to go for the event, removing the past events & sorting the events by their occurrence time. The earlier ones are listed at the top.
- Java ( Java-XML bindings, JSP )
- Apache Tomcat server
- Postgresql DB
- Ant build tool (1.9)
- JUnit testing framework
- You need to configure the database resource in the
$TOMCAT_HOME/conf/context.xml
as follows:
<Resource name="jdbc/postgres" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/$DB_NAME"
username="$USERNAME" password="$PASSWORD" maxTotal="20" maxIdle="10" maxWaitMillis="-1"/>
Resource
element must be put inside the root element, context
. And replace the placeholders, ($DB_NAME
, $USERNAME
, $PASSWORD
) with local values. The value for name attribute above mentioned as jdbc/postgres
is used as a lookup key inside the java code and it must remain the same.
- Run
ant
inside the project folder. Ensure all unit tests pass, and see, the compiled files are placed underWEB-INF/classes
folder - Now, start tomcat server & visit
http://localhost:8080/shopBill/hmPg
to play with it.