In Codecool we had a task to create a webshop of an arbitrary topic. We choose Emotional Support Pets, because we love animals and think that mental well-being and social support is very important. Please consider that this project was made only for practicing programming techniques. We highly respect animal rights and don't consider pets as products.
We created a dynamic web page in Java
with servlets
. Database was not used, only in memory storage with DAO
design pattern to store data. In order to get data from backend, Thymeleaf
templating engine was used. This application does not apply security or login system.
On the index page you can see the pets of the default category.
You can see title, description and price below the images.
You can filter the support pets by category or supplier.
You can put pets into your shopping cart, change the quantities, see the total price of your selected items.
After filling a pseudo payment form you also can view the order of your details.
The application also sends an e-mail to the given e-mail address with the order details.
This is a maven project, so pom.xml will install all the dependencies you need in order to run this application.
- To start the application run
mvn install
command in terminal in the root directory of the project.
- Set up the configuration in your IDE: to comman line field enter the jetty run command along with e-mail account credentials, which is used to send confirmation e-mail. In case your e-mail account applies 2-factor authentication, you need to create an Application Password for running this application.
jetty:run -Demail=<email> -Dpassword=<password>
- Start running the application and visit your
http://localhost:8080/
to see theindex
page.