Sporty-Shoes-Store
This project aims to design and develop an E-commerce Website for Sporty Shoes using Java Spring MVC. It enables users to buy and search the available products and make admin to manage the store within the system. It was developed as a project of Phase-3 for the Implement Frameworks the DevOps way Course. Sprints and Tasks.
Product Backlog:
- Create database and tables.
- Add all dependencies to the Maven project.
- Connect the database to the project.
- Create the models’ classes.
- Create the data access object classes using Hibernate.
- Create login and register pages.
- Show all products to the home page.
- Add products to the cart.
- Show user’s cart.
- Create user’s update page.
- Enable the admin to add a new product.
- Enable the ability to search for a specific product.
- Make the admin able to update and remove a product.
- Make the admin manage the users.
- Make the admin manage the orders.
- Add CSS file and use Bootstrap to format the pages.
- Debug and test the project. Flowcharts of The Application
Technologies and tools Used
• Spring MVC: to build web applications as it follows the Model-View-Controller design pattern.
• JSP: to handle the presentation view.
• Hibernate: to simplify the development and the interaction with the database.
• CSS: to format the contents.
• Bootstrap: to use some CSS and JavaScript designs.
• Maven: to manage the project.
• Eclipse: to write and run the code.
• phpMyAdmin: to administrate and manage the database manually.
• Tomcat: to run and deploy servlet application.
Core concepts used in the project.
• Object-Oriented: used to create and model objects for users and their credentials.
• Data Access Object: to abstract and encapsulate all access to the data source.
• Object–Relational Mapping: to map the objects to the database.
• Databases: used to store and retrieve data.
• Data Sources: used to define a set of properties required to identify and access the database.
• Collections: used some collections such arraylist to store collection of data.
• Exception Handling: used to catch problems that arises in the code especially in I/O blocks
How to run the program
• clone project
clone git : git clone https://github.com/NPBhavani/E-Commerce-website-for-sporty-shoes-phase-3-project
• Import the “main\webapp\resources\database\sporty-shoes.sql” file to your database administration tool.
• Go to “main\webapp\WEB-INF\sporty-shoes-servlet.xml” file, open it.
• Edit some values of the database’ properties such as username, password and driverClassName to be suit to your database administration tool.
• Now run program on a server.
• To login as an admin, you have to enter admin for both username and password.
Screenshots:
- Register page:
- Login page :
- Users update account page:
- Login as admin:
- Admins manage product page:
- Manage orders:
- Add a new products to the system.