BooksForCOD.Com

This website allows users to order for books online and pay cash when books are delivered, i.e. Cash On Delivery(COD).

It allows user to do the following:

Architecture Of the Project

This project uses JavaServer Faces 2.0 to build the interface. Managed Beans talk to DAO (Data Access Objects), which talk to database using JDBC.

So overall architecture is - JSF 2.0 UI Components -> Managed Beans -> DAO -> JDBC -> Oracle Database.

It uses JavaMail to send mail to user when user places an order.

Products and frameworks used in this project

Steps to download and deploy this project

  1. Download booksforcod.rar. The .rar file contains the entire source code for the project. Unzip the file into c:\ so that c:\booksforcod folder is created with all the components of the project.
  2. Open the project in NetBeans 7.x
  3. Go to properties of the project using popup menu. Select libraries node and delete existing libraries using  Remove button. Then add - Oracle - ojdbc6.jar and mail.jar (assuming you have downloaded JavaMail API) for Java Mail. You have to add these .jar files to the project using Add Jar/Folder button.
  4. Add the .jar files related to JSF 2.x using Add Library option.
  5. Create books account with password books in Oracle11g Express Edition. This must be done after you log in as SYSTEM user. Then create tables and sequences listed below after connecting to Oracle as books. These commands are also present in tables.sql file in your project source code.
  6. Run home.xhtml. Search for books by title. Add books to cart and test the rest of the options.