Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/csalih/estore

An example e-commerce web application implemented with Java, Spring, Hibernate, MySQL
https://github.com/csalih/estore

aspectj checkstyle cucumber graphwalker hibernate java junit4 mysql selenium spotbugs spring test test-driven-development testing-tools

Last synced: 3 days ago
JSON representation

An example e-commerce web application implemented with Java, Spring, Hibernate, MySQL

Awesome Lists containing this project

README

        

# eStore

An example e-commerce web application implemented with Java, Spring, Hibernate and MySQL.

Based on https://github.com/KevalSanghavi/eStore

## How to Start

### Requirements

- [Eclipse for Enterprise Java Developers](https://www.eclipse.org/downloads/packages/)
- JDK8
- Tomcat
- installed and available in Eclipse
- MySQL
- with a new empty database named `estore`

### Steps

**Clone Repository**

`git clone https://git.uibk.ac.at/c7031224/sq-online-shop`

**Import to Eclipse**

File > Import > Maven > Existing Maven Projects

Adjust Build Path if necessary (JDK8).

**Configure Database**

Adjust the connection settings for the database in the application context XML.

`src/main/webapp/WEB-INF/application-context.xml`

```xml






```

**Build Project**

Right click on project: Run as > Maven install

**Run Project**

Right click on project: Run as > Run on Server

Access the online application at http://localhost:8080/eStore

**Create Administrator User**

After the first run, the application created the tables in the database. Now you can add the administrator `admin` with the password `admin` by executing the following SQL.

```sql
-- Authorities table:
INSERT INTO `estore`.`authorities` (`authoritiesId`, `authority`, `username`) VALUES ('1', 'ROLE_ADMIN', 'admin');

-- Users table:
INSERT INTO `estore`.`users` (`usersId`, `customerId`, `enabled`, `password`, `username`) VALUES ('1', '0', '1', '$2a$10$sTgPUNcpmNzPpNoyMoyCNOu2TISiY.kxxs7TtxyVxvQBTpXgjcqBq', 'admin');
```

## Business Flow

![business flow diagram](docs/Business Flow Diagram.jpg)