Skip to content

Commit 784429f

Browse files
authored
Update readme.md to improve set up instructions
1 parent a1b9ec1 commit 784429f

File tree

1 file changed

+56
-54
lines changed

1 file changed

+56
-54
lines changed

README.md

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ Clone the Git [repository](https://github.com/SAP/cloud-espm-v2.git) or download
1515

1616
# 1. Quick start guide
1717
### Setting up the developer environment
18-
1. Install [SAP JVM 8.*](https://tools.hana.ondemand.com/#cloud) or Java JDK 1.8 and setup the JAVA_HOME and PATH environment variables in your local machine
19-
2. Install [Eclipse](https://help.hana.ondemand.com/help/frameset.htm?761374e5711e1014839a8273b0e91070.html). Please download Eclipse Neon
20-
3. [Install SAP Development Tools for Eclipse](https://help.hana.ondemand.com/help/frameset.htm?76137a37711e1014839a8273b0e91070.html)
21-
4. Install the [SAP HANA Cloud SDK](https://help.hana.ondemand.com/help/frameset.htm?7613843c711e1014839a8273b0e91070.html). Please download Java Web Tomcat 8 SDK
22-
5. Use Java Web Tomcat 8 Runtime Environment as described in [Setup the Runtime Environment](https://help.hana.ondemand.com/help/frameset.htm?7613f000711e1014839a8273b0e91070.html) document
23-
6. Signup for [HCP Trial account](https://hcp.sap.com/developers.html#section_4) if you don't have HCP Trial Account
18+
1. Install Oracle Java SE Development Kit (JDK) 8 or [SAP JVM 8.*](https://help.hana.ondemand.com/help/frameset.htm?76137f42711e1014839a8273b0e91070.html) and set up the JAVA_HOME and PATH environment variables on your local machine.
19+
2. [Install Eclipse](https://help.hana.ondemand.com/help/frameset.htm?761374e5711e1014839a8273b0e91070.html). Please install Eclipse Neon.
20+
3. (Optional: Only if you use SAP JVM) [Set up SAP JVM in Eclipse](https://help.hana.ondemand.com/help/frameset.htm?7613eaad711e1014839a8273b0e91070.html).
21+
4. [Install SAP Development Tools for Eclipse](https://help.hana.ondemand.com/help/frameset.htm?76137a37711e1014839a8273b0e91070.html). Please use the link for Eclipse Neon.
22+
5. [Install SAP HANA Cloud Platform SDK](https://help.hana.ondemand.com/help/frameset.htm?7613843c711e1014839a8273b0e91070.html). Please install Java Web Tomcat 8.
23+
6. [Set up the Runtime Environment in Eclipse](https://help.hana.ondemand.com/help/frameset.htm?7613f000711e1014839a8273b0e91070.html). Please follow the steps for Java Web Tomcat 8 Runtime.
24+
7. Register for a free developer account on [SAP HANA Cloud Platform](https://account.hanatrial.ondemand.com).
2425

2526
### Build the application and deploy
26-
Below are the Steps to build and run espm application.
27+
Below are the steps to build and run the ESPM application:
2728
```sh
2829
1.Git configuration in Eclipse
2930
2.Maven configuration
@@ -36,76 +37,74 @@ Below are the Steps to build and run espm application.
3637

3738
#### 1.Git configuration in Eclipse
3839
- From the Eclipse IDE main menu, choose Window > Preferences
39-
- Enter git in the filter field in the top-left corner.
40+
- Enter git in the filter field in the top-left corner
4041
- Navigate to Team > Git > Configuration and select the Configuration node and add the following configuration
4142

4243
![EGit Configuration](/docs/images/EGitConfig.PNG?raw=true)
4344

44-
**Note! For most people the proxy value doesn’t need to be set but if you are working behind a proxy, then it should be set as per you environment**
45+
**Note! For most people the proxy value doesn’t need to be set but if you are working behind a proxy, then it should be set as per you environment.**
4546

4647
#### 2.Maven configuration
4748
- From the Eclipse IDE main menu, choose Window > Preferences
4849
- Enter maven in the filter field in the top-left corner
4950
- Navigate to Maven > User Settings and select the User Settings node
50-
- If you are using Maven for the first time you need to create a settings.xml file at location C:/Users/<your-user-name>/.m2/settings.xml. The contents of the settings .xml file should looks like below snippet:
51+
- If you have already installed Maven before you can click the open file link. If you are using Maven for the first time you need to create a settings.xml file at the location /Users/your-user-name/.m2/settings.xml. The contents of the settings.xml file should look like the snippet below.
5152

5253
![Maven Settings Configuration](/docs/images/MavenSettings.PNG?raw=true)
53-
- Note: If you are not working behind a proxy firewall you can remove the entire proxy section from the snippet
54-
- Information: If you have already installed Maven before you can click open file link and add e.g. the proxy configuration to your settings.xml if not already there.
55-
56-
```sh
57-
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
58-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
59-
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
60-
<localRepository>${user.home}/.m2/repository</localRepository>
61-
<profiles>
62-
<profile>
63-
<id>development</id>
64-
<activation>
65-
<activeByDefault>true</activeByDefault>
66-
</activation>
67-
<properties>
68-
</properties>
69-
</profile>
70-
</profiles>
71-
<proxies>
72-
<proxy>
73-
<active>true</active>
74-
<protocol>http</protocol>
75-
<host>proxy</host>
76-
<port>8080</port>
77-
</proxy>
78-
</proxies>
79-
</settings>
80-
```
8154

55+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
56+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
57+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
58+
<localRepository>${user.home}/.m2/repository</localRepository>
59+
<profiles>
60+
<profile>
61+
<id>development</id>
62+
<activation>
63+
<activeByDefault>true</activeByDefault>
64+
</activation>
65+
<properties>
66+
</properties>
67+
</profile>
68+
</profiles>
69+
<proxies>
70+
<proxy>
71+
<active>true</active>
72+
<protocol>http</protocol>
73+
<host>proxy</host>
74+
<port>8080</port>
75+
</proxy>
76+
</proxies>
77+
</settings>
78+
79+
**Note! For most people the proxy value doesn’t need to be set, you can remove the entire proxy section from the snippet, but if you are working behind a proxy, then it should be set as per you environment.**
8280

8381
#### 3.Clone Git repository and import Maven project
84-
- Open https://github.com/SAP/cloud-espm-v2 with your web browser
85-
- Click on the Copy to clipboard so that the Git repository URL of the opened cloud-basecamp GitHub repository is copied to your clipboard.
82+
- Open https://github.com/SAP/cloud-espm-v2 with your web browser.
83+
- Click on the Copy to clipboard so that the Git repository URL of the opened GitHub repository is copied to your clipboard.
8684

8785
![Repo URL](/docs/images/repoclone.png?raw=true)
86+
8887
- In Eclipse, open the Git perspective. From the Eclipse IDE main menu, choose Window > Open Perspective > Other.... Select Git and choose Ok to open the Git perspective.
8988
- In this perspective you have the Git Repositories view on the left. As long as there is no Git Repository defined you will see 3 links (as shown here) to add a repository to the view.
9089

9190
![Git Clone](/docs/images/GitClone.PNG?raw=true)
91+
9292
- In the corresponding menu (top-right of the view), click on the Clone a Git repository link.
9393
- Because you copied before the cloud-basecamp Git repository URL to your clipboard, the fields (URI, Host, Repository path and Protocol) of the opened dialog are filled automatically with the correct values.
94-
- Do not change anything, just click Next >
95-
- On this wizard page check that the master branch is selected and click again on Next >
96-
- On the last wizard page you can adjust the location of the local Git Repository, but for the scope of this tutorial we'll just leave the default as-is
97-
- Click on Finish so that the remote cloud-basecamp Git repository (source code) is cloned to the local location specified on the last wizard page.
98-
- In Eclipse, open File->Import->Existing Maven projects.
94+
- Do not change anything, just click Next >.
95+
- On this wizard page check that the master branch is selected and click again on Next >.
96+
- On the last wizard page you can adjust the location of the local Git Repository, but for the scope of this tutorial we'll just leave the default as-is.
97+
- Click on Finish so that the remote Git repository (source code) is cloned to the local location specified on the last wizard page.
98+
- In Eclipse, open File->Import->Existing Maven projects and import the Maven project.
9999

100100
#### 4.Update dependencies and build Maven project
101-
102101
- Instruction to run update dependencies for the Maven project
103102
- Right click on the web project in ESPM > and choose Maven > Click on Update Project
104-
- Note! you need to modify the parent pom.xml for certain property values depending on your environment:
105-
- local.server.proxy.settings - comment this out if you are not behind a proxy server. Else update your proxy settings here
106-
- browser.proxy.settings - comment this out if your browser is not using a proxy. Else update your browser proxy settings here
107-
- sap.cloud.sdk.version - The SAP HANA Cloud Platform SDK for Java Web Tomcat 8 version that you intend to run the application with. the minimum version supported is 3.22.10
108-
- olingo.version - The Apache Olingo version that you intend the application to run with. The minimum version supported is 2.0.6
103+
- Note! If you face errors you need to modify the parent pom.xml for certain property values depending on your environment:
104+
- local.server.proxy.settings - delete this if you are not behind a proxy server, else update your proxy settings here
105+
- browser.proxy.settings - delete this if your browser is not using a proxy, else update your browser proxy settings here
106+
- sap.cloud.sdk.version - The SAP HANA Cloud Platform SDK for Java Web Tomcat 8 version that you intend to run the application with, the minimum version supported is 3.22.10
107+
- olingo.version - The Apache Olingo version that you intend the application to run with, the minimum version supported is 2.0.6
109108

110109
The application can be built with the maven command to the parent pom.xml
111110

@@ -122,9 +121,11 @@ i)Run the application in HCP Java Web Tomcat 8 Server
122121
- Right click on the web project in ESPM > and choose the Run on Server option
123122

124123
![Run ESPM Locally](/docs/images/RunESPM1.png?raw=true)
124+
125125
- Make sure that Manually define a new server is selected and choose SAP > Java Web Tomcat 8 Server as server type. Leave all other settings unchanged and choose Finish
126126

127127
![Run ESPM Finish](/docs/images/RunESPM2.png?raw=true)
128+
128129
- Now a local server is started that has your espm application deployed.
129130

130131
ii)Create Users and Assign Role
@@ -137,6 +138,7 @@ ii)Create Users and Assign Role
137138
ret ret 123 Retailer
138139

139140
![Create User locally](/docs/images/localuser.png?raw=true)
141+
140142
- The eCommerce site can be accessed via the URL: https://localhost:\<port\>/espm-cloud-web/webshop
141143
- The Retailer UI can be accessed via the URL: https://localhost:\<port\>/espm-cloud-web/retailer
142144

@@ -150,12 +152,10 @@ ii)Create Users and Assign Role
150152

151153
![HCP Cockpit](/docs/images/HCPCockpit.png?raw=true)
152154

153-
154155
2.Add War File Location, Give Application Name "espm" ,select Runtime Name "Java Web Tomcat 8" and JVM Version "JRE 8"
155156

156157
![HCP Deploy](/docs/images/HCPDeploy.png?raw=true)
157158

158-
159159
3.After Successful Deployment , Click on Start
160160

161161
![Deployed](/docs/images/Deployed.png?raw=true)
@@ -200,12 +200,13 @@ Below is the process to bind the database to the java application in HCP trial a
200200

201201
[help information on Binding applications to Database on HCP - Link 2](https://help.hana.ondemand.com/help/frameset.htm?216cef2158cc419fade9a8247d5008fa.html).
202202

203-
204203
### Demo script for [ESPM Webshop](/docs/demoscript/WebshopREADME.md)
205204
### Demo script for [ESPM Retailer-SalesorderApproval](/docs/demoscript/Retailer_SalesOrderApprovalREADME.md)
206205
### Demo script for [ESPM Retailer-StockUpdate](/docs/demoscript/Retailer_StockUpdateREADME.md)
206+
207207
### Documentation for [Document Service](/docs/documentation/DocumentServiceREADME.md)
208208
### Documentation for [SAP JAM Integration](/docs/documentation/SAPJAMIntegrationREADME.md)
209+
209210
# 2.Deep-dive guide
210211
### Architecture Overview
211212
The following diagram provides an overview of the ESPM Sample application architecture:
@@ -227,6 +228,7 @@ The ESPM Sample Application is a Maven based project which has a parent pom.xml
227228
### The JPA Class diagram
228229

229230
![JPA Class Diagram](/docs/images/espm-cloud-jpa.png?raw=true)
231+
230232
### ESPM Source Code packages
231233
**The espm-cloud-jpa has the following packages:**
232234

0 commit comments

Comments
 (0)