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:
- Search for books by title
- Add book to Cart
- Display the Cart
- Delete a book from cart
- Place order
- Get details of an Order
Architecture Of the Project
This project uses JavaServer Faces 2.2 to build the interface. Managed Beans talk
to DAO (Data Access Objects), which talk to database using JDBC.
So overall architecture is - JSF 2.2 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
- Java EE 7.0
- JSF 2.2
The following features of JSF 2.2 were used in this project.
- JSF html tags for input
- Session level managed beans and sessions
- <ui:repeat> tag to display data
- Templating
- Validation using Validation tags
- Ajax using <f:ajax>
- Default navigation
- Oracle11g Express Edition (XE)
- Eclipse Mars
- Jdk87.0
- Tomcat 8.x
- Java Mail API and Mail Server
Steps to download and deploy this project
- Download booksforcod.rar. The .rar file contains the entire source
code for the project. Unzip the file into d:\ so that d:\booksforcod folder is created with all the components of the project.
- Start Eclipse.
- Select File -> Import option .
Select General and Existing Projects into Workspace.
Select the folder into which you extracted project (d:\booksforcod).
- Place .jar files related to JSF 2.x , Java Mail,
and Jdbc Driver for Oracle in WEB-INF/lib folder.
- 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.
- Run faces/home.xhtml. Search for books by title. Add books to cart and test the rest of the options.