HYBRIS 2205 WITH SAPARTACUS
1. Install JDK 17 -: https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
Download SAP Hybris Suite 2205 from URL -: https://launchpad.support.sap.com/#/softwarecenter/template/products/%20_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGATE&ENR=73554900100200017675&V=MAINT&TA=ACTUAL&PAGE=SEARCH/CX%20COMMERCE%202205
2. Create a folder Hybris2205SPA and extract the ZIP under this folder.
3. Download spartacussampledata.2105.zip -: https://github.com/SAP/spartacus/releases/download/storefront-4.1.0/spartacussampledata.2105.zip
4. In hybris/bin: Create the folder custom and create spartacussampledata under custom folder.
5. Extract spartacussampledata.2105.zip inside spartacussampledata.
6. Move the custom.properties file from spartacussampledata/resources/installer/customconfig to hybris-commerce-suite-2205/installer/customconfig
7. Download recipe from -: https://drive.google.com/file/d/1y6JqlIPchkkYjXiZZiZQfR20pOJ0F_Fx/view?usp=share_link
8. Go to installer/recipes folder: extract and paste recipe cx-for-spa under mentioned folder
----------------------------------------------
9. Open CMD inside Installer folder and run the command : install.bat -r cx-for-spa
10. Initialize the system using the following command: install.bat -r cx-for-spa initialize
11. Open CMD inside hybris\bin\platform and start your server using command : hybrisserver.bat
------------------------------------------------------------------------
12. Install Node JS : https://www.npackd.org/p/org.nodejs.NodeJS64/14.17.1 [version: node-v14.17.1-x64.msi]
13. Create a folder under custom folder name as "spartacusstore"
14. Open CMD inside "spartacusstore" folder and execute below command:
npm install --global yarn
yarn install
npm install -g @angular/cli@12
ng new apparel-spa-store --style=scss
cd apparel-spa-store
ng add @spartacus/schematics@latest --baseUrl https://localhost:9002/ --baseSite=apparel-uk-spa --interactive=false
15. Strat your spartacus server with command : yarn start --ssl
-------------------------------------------------------
16. Navigate to C:\Windows\System32\drivers\etc\hosts open hosts file and add the belowproperties and save :
127.0.0.1 localhost electronics.local apparel-uk.local apparel-de.local powertools.local
17. In chrome open -: chrome://flags/#allow-insecure-localhost and enable "Allow invalid certificates for resources loaded from localhost."
18. Open Hac : https://localhost:9002/console/impex/import
Import Below Impex :
INSERT_UPDATE OAuthClientDetails;clientId[unique=true] ;resourceIds ;scope ;authorizedGrantTypes ;authorities ;clientSecret ;registeredRedirectUri
;client-side ;hybris ;basic ;implicit,client_credentials ;ROLE_CLIENT ;secret ;http://localhost:9001/authorizationserver/oauth2_implicit_callback;
;mobile_android ;hybris ;basic ;authorization_code,refresh_token,password,client_credentials ;ROLE_CLIENT ;secret ;http://localhost:9001/authorizationserver/oauth2_callback;
INSERT_UPDATE CorsConfigurationProperty;key[unique=true];value;context[default=commercewebservices,unique=true]
;allowedOrigins;http://localhost:4200 https://localhost:4200
;allowedOriginPatterns;*
;allowedMethods;GET HEAD OPTIONS PATCH PUT POST DELETE
;allowedHeaders;origin content-type accept authorization cache-control x-anonymous-consents x-profile-tag-debug x-consent-reference occ-personalization-id occ-personalization-time
;allowCredentials;true
;exposedHeaders;x-anonymous-consents occ-personalization-id occ-personalization-time
---------------------------------------------
---------All Links--------
HAC -: https://localhost:9002/hac/
Backoffice -: https://localhost:9002/backoffice/login.zul
SmartEdit -: https://localhost:9002/smartedit/
Apprel UK Site -: https://apparel-uk.local:9002/yacceleratorstorefront/en/
Electronic Site -: https://electronics.local:9002/yacceleratorstorefront/electronics/en/
Powertools Site -: https://powertools.local:9002/yb2bacceleratorstorefront/powertools/en/USD/
Spartacus Site -: https://localhost:4200
=============================================================================================================================