Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc/gh 747 - Updated Download link in Step 2 - Installing SAP Com with TUA SPA #761

Open
wants to merge 162 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
3585757
Update Gemfile.lock
gladius-mtl May 13, 2020
f72bae2
Update Gemfile.lock with windows gems
gladius-mtl May 13, 2020
62d1b3e
Create new test checkout page (#579)
May 13, 2020
426f391
Updated intro - About Telco & Utilities Storefront
Jun 11, 2020
7451f28
Renamed the topic title
Jun 17, 2020
f30e2c6
Renamed the title
Jun 17, 2020
0504447
Removed "s" from APIs to check output
Jun 18, 2020
4a9bf56
Added "s" to APIs
Jun 18, 2020
36a30db
Update about-spartacus-for-tua.md
DeborahCCJ Jun 18, 2020
ecca973
Merge pull request #642 from SAP/doc/GH-641
skhasgiw-SPA Jun 18, 2020
32f2093
Created a new spartacus-roadmap-for-tua topic
skhasgiw-SPA Jun 19, 2020
f176df4
Update spartacus-roadmap-for-tua.md
Jun 19, 2020
a28851d
Merge pull request #656 from SAP/doc/GH-655
skhasgiw-SPA Jun 19, 2020
765ede8
Created a new topic - spartacus-tua-faqs.md.
skhasgiw-SPA Jun 22, 2020
f3c4f2a
Merge pull request #661 from SAP/doc/GH-660
skhasgiw-SPA Jun 22, 2020
29594b3
Updated the opening paragraph
skhasgiw-SPA Jun 22, 2020
057c886
Removed "s" from FAQs
skhasgiw-SPA Jun 22, 2020
142686f
Added "s" to the title
skhasgiw-SPA Jun 22, 2020
1c2fb9f
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
skhasgiw-SPA Jun 22, 2020
9715e97
Updated about spartacus for TUA
Jun 23, 2020
7e238d3
Updated title and content for the topic
Jun 23, 2020
83ab8f0
Merge pull request #665 from SAP/doc/GH-664
skhasgiw-SPA Jun 23, 2020
b3655c3
Added TUA Release information topic
Jun 23, 2020
0339c49
Updated title Release Information for TUA
Jun 23, 2020
5a99a6f
Updated the topic title
Jun 23, 2020
ed7c7e2
Updated review content
Jun 23, 2020
2d5ad09
Merge pull request #667 from SAP/doc/GH-666
Jun 23, 2020
13c482a
Created "spartacus-roadmap-for-tua" topic entry.
skhasgiw-SPA Jun 23, 2020
4cdd467
Created spartacus-roadmap-for-tua topic.
skhasgiw-SPA Jun 23, 2020
5052963
Merge pull request #669 from SAP/doc/GH-668
skhasgiw-SPA Jun 23, 2020
5624db8
Updated the FAQs content.
skhasgiw-SPA Jun 23, 2020
bb24ef9
Merge pull request #670 from SAP/doc/GH-660
skhasgiw-SPA Jun 23, 2020
0b5b280
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
Jun 23, 2020
6446efb
Updated Getting Started with Spartacus for TUA entry
skhasgiw-SPA Jun 24, 2020
6f2a0c6
Created - Getting Started with Spartacus for TUA
skhasgiw-SPA Jun 24, 2020
32b42b0
Merge pull request #672 from SAP/doc/GH-671
skhasgiw-SPA Jun 24, 2020
baf8c6d
Updated installation guide for TUA entry.
skhasgiw-SPA Jun 24, 2020
1491c69
Created a new topic installation guide for TUA.
skhasgiw-SPA Jun 24, 2020
e832a2d
Merge pull request #674 from SAP/doc/GH-673
skhasgiw-SPA Jun 24, 2020
f89da9d
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
Jun 26, 2020
6ca4ceb
New entry - Building Spartacus TUA Storefront
skhasgiw-SPA Jun 26, 2020
2095415
New topic - Building Spartacus TUA Storefront
skhasgiw-SPA Jun 26, 2020
b489ded
Added Installing SAP commerce cloud TUA topic
Jun 26, 2020
e0a531b
Added Installing SAP commerce cloud TUA topic
Jun 26, 2020
827ded8
Created spartacus-features-for-tua.md container topic
skhasgiw-SPA Jul 15, 2020
4c17ef4
Updated the YML with spartacus-features-for-tua.md
skhasgiw-SPA Jul 15, 2020
332546a
Corrected the space in the URL
skhasgiw-SPA Jul 16, 2020
4bd6e51
Added a sample feature
skhasgiw-SPA Jul 16, 2020
ec3cf0e
Fixed the YML navigation issue.
skhasgiw-SPA Jul 16, 2020
6f86d2d
Added TUA Pre-Release Information in YML
skhasgiw-SPA Jul 17, 2020
814a950
Created new topic - TUA Pre-Release Information
skhasgiw-SPA Jul 17, 2020
4d1097e
Merge pull request #683 from SAP/doc/GH-682
Jul 21, 2020
c541814
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
Jul 21, 2020
fdb695d
Updated content.
skhasgiw-SPA Jul 21, 2020
b83fcb3
Completely upated the content.
skhasgiw-SPA Jul 21, 2020
55cf326
Created new tua-pre-release-notes-next1
skhasgiw-SPA Jul 22, 2020
536fdde
Updated TUA help portal links.
skhasgiw-SPA Jul 22, 2020
315b34c
Removed the term "latest".
skhasgiw-SPA Jul 22, 2020
75acff1
Updated with latest changes
Jul 23, 2020
93c54ab
Upated building the Storefront topic.
skhasgiw-SPA Jul 23, 2020
f7b1167
Updated topic entry
Jul 23, 2020
d892c8f
Updated the Building the Spartacus entry
skhasgiw-SPA Jul 24, 2020
7eee70b
Updated the YML.
skhasgiw-SPA Jul 24, 2020
3a72333
minor alignment change
Jul 24, 2020
1b8c5ad
minor changes
Jul 24, 2020
d73fe5f
wording changed to latest patch
Jul 24, 2020
8f7e1c1
Updated Deb's content from the Wiki.
skhasgiw-SPA Jul 24, 2020
9fa825a
Updated to"Product Offering Prices (One-Time Charges, Recurring Charg…
skhasgiw-SPA Jul 27, 2020
3a27481
Updated the link with the title - Pricing.
skhasgiw-SPA Jul 27, 2020
f569462
Updated all URLs with 2007 links.
skhasgiw-SPA Jul 27, 2020
b501e31
updated the path
Jul 27, 2020
e9e7a6c
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
skhasgiw-SPA Jul 27, 2020
520f2ba
Updated Installing and Building Spartacus Libraries
skhasgiw-SPA Jul 27, 2020
5d63292
Updated the navigation YML file.
skhasgiw-SPA Jul 27, 2020
ff787be
Added a link to TUA Pre-Release Information.
skhasgiw-SPA Jul 27, 2020
e4392cb
updated installation entry
Jul 27, 2020
dfa05fa
Merge branch 'Telco-Preprod-Doc' into doc/GH-676
Jul 27, 2020
81f7a20
Merge pull request #678 from SAP/doc/GH-676
Jul 27, 2020
21eaf72
Merge branch 'Telco-Preprod-Doc' into doc/GH-704
skhasgiw-SPA Jul 27, 2020
06ef7b2
Merge pull request #705 from SAP/doc/GH-704
skhasgiw-SPA Jul 27, 2020
26a1c2f
Merge branch 'Telco-Preprod-Doc' into doc/GH-675
skhasgiw-SPA Jul 28, 2020
2198f30
Merge pull request #690 from SAP/doc/GH-688
skhasgiw-SPA Jul 28, 2020
766a2ae
Merge pull request #677 from SAP/doc/GH-675
skhasgiw-SPA Jul 28, 2020
5d84d41
Merged yml file
Jul 28, 2020
780056b
Updated to Final YML version
Jul 28, 2020
b4898de
updated link
Jul 28, 2020
0bdb28a
updated link
Jul 28, 2020
a7524b0
updated TOC structure
Jul 28, 2020
9986f74
Updated topic cross reference link
Jul 28, 2020
e93b899
Updated cross reference links
Jul 28, 2020
5c35744
Updated the latest TUA ToC
skhasgiw-SPA Jul 28, 2020
a66cbf2
Updated the Pre-release Notes
skhasgiw-SPA Jul 28, 2020
fb68c6c
Updated link in the getting started.
skhasgiw-SPA Jul 28, 2020
1359057
Changed the path from "Install" to "Telco"
skhasgiw-SPA Jul 28, 2020
a2e9a44
Merge pull request #696 from SAP/doc/GH-693
skhasgiw-SPA Jul 28, 2020
c9c072b
Changed "B" to "b" in the link.
skhasgiw-SPA Jul 28, 2020
da4ee43
Changed "B" to "b" in the link.
skhasgiw-SPA Jul 28, 2020
7ab64a0
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
skhasgiw-SPA Jul 28, 2020
fa28d74
Final TUA Table of Contents
skhasgiw-SPA Jul 28, 2020
3eca22c
Updated the entire topic.
skhasgiw-SPA Jul 28, 2020
c9c1f3f
Updated the entire topic
skhasgiw-SPA Jul 28, 2020
c252ceb
Merge pull request #707 from SAP/doc/GH-706
skhasgiw-SPA Jul 28, 2020
5478be0
Corrected links and URLs
skhasgiw-SPA Jul 28, 2020
193acb1
Corrected links and URLs
skhasgiw-SPA Jul 28, 2020
e4bc9e4
Merge pull request #709 from SAP/doc/GH-708
skhasgiw-SPA Jul 28, 2020
5c9a7e9
Accepted incoming changes
Jul 31, 2020
594cf7d
Updated YML for CPI Feature entry.
skhasgiw-SPA Aug 5, 2020
4cb36ab
Created new topic for CPI feature.
skhasgiw-SPA Aug 5, 2020
4397286
Updated the CPI feature entry in the topic.
skhasgiw-SPA Aug 5, 2020
81c24fc
Created a new figure for CPI feature.
skhasgiw-SPA Aug 5, 2020
f2a00bb
Created a new figure for CPI feature.
skhasgiw-SPA Aug 5, 2020
849665d
Created a new figure for CPI feature.
skhasgiw-SPA Aug 5, 2020
4aab0a4
Created a new figure for CPI feature.
skhasgiw-SPA Aug 5, 2020
13725a4
Created a new figure for CPI feature.
skhasgiw-SPA Aug 5, 2020
86df149
Created a new figure for CPI feature.
skhasgiw-SPA Aug 5, 2020
c35f88b
Very basic updates incorporated.
skhasgiw-SPA Aug 11, 2020
c491940
Updated Journey Mng - MSISDN entry.
skhasgiw-SPA Aug 17, 2020
fd9fa47
Updated the content.
skhasgiw-SPA Aug 17, 2020
0d689da
Updated Journey Mng - MSISDN entry.
skhasgiw-SPA Aug 17, 2020
2ae6bf9
Updated Step 11
Aug 20, 2020
50cf6b7
Merge pull request #733 from SAP/doc/GH-732
Aug 20, 2020
332ff96
Updated the feature entry in the YML.
skhasgiw-SPA Aug 26, 2020
aa9d937
Topic ready for peer review.
skhasgiw-SPA Aug 26, 2020
021ab46
Appointment feature updated.
skhasgiw-SPA Aug 26, 2020
43bfedf
FAQs updated.
skhasgiw-SPA Aug 26, 2020
40d4f83
Inserted Product Offering figure.
skhasgiw-SPA Aug 26, 2020
a1726b8
Inserted Suitable Appointments figure.
skhasgiw-SPA Aug 26, 2020
08c0c90
Inserted Add to Cart figure.
skhasgiw-SPA Aug 26, 2020
d701f30
Inserted View Cart figure.
skhasgiw-SPA Aug 26, 2020
57c8d20
Updated Further Reading links.
skhasgiw-SPA Aug 26, 2020
9d97688
replaced with TUA Spartacus
Sep 3, 2020
3f8c9ea
Added a new logic screen capture.
skhasgiw-SPA Sep 3, 2020
69dbbcf
Updated the screen capture.
skhasgiw-SPA Sep 3, 2020
308e17a
Updated the screen capture.
skhasgiw-SPA Sep 3, 2020
adb30f4
Updated the screen capture.
skhasgiw-SPA Sep 3, 2020
5dc72dd
Created a new screen capture.
skhasgiw-SPA Sep 3, 2020
d40104e
Created a new screen capture.
skhasgiw-SPA Sep 3, 2020
f1d1142
Updated the screen capture.
skhasgiw-SPA Sep 3, 2020
5ef277e
Updated the screen capture.
skhasgiw-SPA Sep 3, 2020
e57c9e7
Added a new screen capture.
skhasgiw-SPA Sep 3, 2020
bd4872d
Updated the screen capture.
skhasgiw-SPA Sep 3, 2020
47226dd
Added a screen capture.
skhasgiw-SPA Sep 3, 2020
5db1e37
Updated the topic with all changes.
skhasgiw-SPA Sep 3, 2020
cb7165d
Updated the content.
skhasgiw-SPA Sep 3, 2020
847e951
Merge branch 'Telco-Preprod-Doc' of https://github.com/SAP/spartacus-…
skhasgiw-SPA Sep 3, 2020
3545a02
Replaced Spartacus for TUA with TUA Spartacus
Sep 3, 2020
6ab6e67
Replaced Spartacus for TUA with TUA Spartacus
Sep 3, 2020
8a26d17
Replaced Spartacus for TUA with TUA Spartacus
Sep 3, 2020
c137a29
Replaced Spartacus for TUA with TUA Spartacus
Sep 3, 2020
47bc04a
Replaced Spartacus for TUA with TUA Spartacus
Sep 3, 2020
071d1fd
Updated the two paragraphs.
skhasgiw-SPA Sep 3, 2020
bbb5f40
Updated the new product name.
skhasgiw-SPA Sep 3, 2020
a8d47f3
Merge branch 'doc/GH-743' of https://github.com/SAP/spartacus-docs in…
skhasgiw-SPA Sep 3, 2020
e6e95da
Updates incorporated.
skhasgiw-SPA Sep 3, 2020
aa2fa25
Updates incorporated.
skhasgiw-SPA Sep 3, 2020
8f53839
Updates incorporated.
skhasgiw-SPA Sep 3, 2020
71bcb09
Updates incorporated.
skhasgiw-SPA Sep 3, 2020
d0a513b
Removed - to be determined.
skhasgiw-SPA Sep 3, 2020
45b40a8
Updated the numbering sequence.
skhasgiw-SPA Sep 3, 2020
ff27747
Merge pull request #744 from SAP/doc/GH-743
skhasgiw-SPA Sep 3, 2020
626a929
Doc review and product name change
gladius-mtl Sep 3, 2020
0f470b2
Updated link to TUA Spartacus release in Step 2
Sep 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.2.1)
activesupport (6.0.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
algolia_html_extractor (2.6.2)
json (~> 2.0)
nokogiri (~> 1.10.4)
algoliasearch (1.27.1)
algoliasearch (1.27.2)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
coffee-script (2.4.1)
Expand All @@ -33,10 +33,10 @@ GEM
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
execjs (2.7.0)
faraday (1.0.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.11.1)
ffi (1.11.1-x64-mingw32)
ffi (1.12.2)
ffi (1.12.2-x64-mingw32)
filesize (0.2.0)
forwardable-extended (2.6.0)
gemoji (3.0.1)
Expand Down Expand Up @@ -224,8 +224,8 @@ GEM
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minimal-mistakes-jekyll (4.18.1)
jekyll (>= 3.6, < 5.0)
minimal-mistakes-jekyll (4.19.2)
jekyll (>= 3.7, < 5.0)
jekyll-feed (~> 0.1)
jekyll-gist (~> 1.5)
jekyll-include-cache (~> 0.1)
Expand All @@ -237,19 +237,20 @@ GEM
mini_portile2 (~> 2.4.0)
nokogiri (1.10.9-x64-mingw32)
mini_portile2 (~> 2.4.0)
octokit (4.14.0)
octokit (4.18.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
progressbar (1.10.1)
public_suffix (3.1.1)
rb-fsevent (0.10.3)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rouge (3.13.0)
ruby-enum (0.7.2)
ruby-enum (0.8.0)
i18n
rubyzip (2.2.0)
rubyzip (2.3.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
Expand All @@ -262,11 +263,11 @@ GEM
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.3.1)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.6.1)
unicode-display_width (1.7.0)
verbal_expressions (0.1.5)
wdm (0.1.1)
zeitwerk (2.3.0)
Expand Down
22 changes: 17 additions & 5 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,23 @@ docs:

- title: Telco & Utilities Storefront Development Guide
children:
- title: "About Telco & Utilities Storefront"
url: /about-telco/
- title: "Release Information"
url: /telco-release-information/

- title: "About TUA Spartacus"
url: /about-tua-spartacus/
- title: "Release Information for TUA Spartacus ➢"
url: /telco-release-information/
subchildren:
- title: "Pre-Release Information"
url: /tua-pre-release-notes-next1/
- title: "Roadmap for TUA Spartacus"
url: /tua-spartacus-roadmap/
- title: "Getting Started with TUA Spartacus ➢"
url: /getting-started-with-tua-spartacus/
subchildren:
- title: "Installing SAP Commerce Cloud for use with TUA Spartacus."
url: /installing-sap-commerce-for-tua-spartacus/
- title: "Building the TUA Spartacus Storefront from Libraries"
url: /building-the-tua-storefront-from-libraries/

- title: Contributing to Spartacus
children:
- title: "Contributor's Guide ➢"
Expand Down
7 changes: 0 additions & 7 deletions _pages/telco/about-telco.md

This file was deleted.

7 changes: 7 additions & 0 deletions _pages/telco/about-tua-spartacus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: About TUA Spartacus
---

The telco and utilities accelerator for project "Spartacus" (TUA Spartacus) is a lean, Angular-based storefront for SAP Commerce working exclusively through the Commerce REST API. TUA Spartacus works with and enhances the Telco and Utilities Accelerator storefront. In addition to supporting Commerce REST APIs, the Telco and Utilities Accelerator supports TM Forum APIs for delivering industry-specific functionality.

Service providers can deliver personalized and relevant user experiences tailored to the needs of their customers. The TUA storefront provides a future-proof technical foundation for growth, quick time-to-market, and a competitive advantage for delivering innovative capabilities. For more information, see [TUA Storefront](https://b2ctelco.avengers:9002/yacceleratorstorefront/b2ctelco/en/).
259 changes: 259 additions & 0 deletions _pages/telco/building-the-tua-storefront-from-libraries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
---
title: Building the TUA Spartacus Storefront from Libraries
---

The following instructions describe how to build a TUA storefront application using published TUA Spartacus 1.x libraries.

**Note:** If you are building TUA Spartacus from source, see [Contributor Setup]({{ site.baseurl }}{% link _pages/contributing/contributor-setup.md %}).

## Prerequisites

Before carrying out the procedures below, ensure that you meet the following front-end and back-end requirements.

## Front-End Development Requirements

{% include docs/frontend_requirements.html %}

### Installing or Updating the Prerequisite Development Tools

There are a few ways you can install Angular and other prerequisite software. The following example installs yarn, node.js, and Angular CLI using [Homebrew](https://brew.sh), which was created for MacOS, but also works on Linux and Windows 10 (through the Linux subsystem feature).

To install the prerequisite development tools, install [Homebrew](https://brew.sh), and then run the following commands:

```
brew install yarn
brew install node@10
brew install angular-cli
```

To update existing installations, use `brew upgrade` instead of `brew install`.

**Note:**

- If you have a later version of node.js installed in addition to v10, you can set v10 to be used with the following command:
`brew link --force --overwrite node@10`.
- Installing Homebrew and the prerequisites is beyond the scope of this document. You can also install the prerequisites using their individual installers.

## Back End Server Requirements

TUA Spartacus uses SAP Commerce and Telco & Utilities Accelerator for its back end, and makes use of the sample data from the Telco & Utilities Accelerator storefront in particular.

- SAP Commerce version: Release 1905 (latest patch is recommended).
- Telco & Utilities Accelerator version: Release 2003 (latest patch) is required.

For more information, see [Installing SAP Commerce for use with TUA Spartacus]({{ site.baseurl }}{% link _pages/telco/installing-sap-commerce-for-tua-spartacus.md %}).

## Creating a New Angular App

To create a new Angular application with the name `mystore`, follow the procedure:

1. Open a terminal or command prompt window at the location of your choice.

2. Using the Angular CLI, generate a new Angular application with the following command:

```bash
ng new mystore --style=scss
```

When prompted if you would like to add Angular routing, enter `n` for 'no'.

The `mystore` folder and the new app are created.

3. Access the newly created `mystore` folder with the following command:

```bash
cd mystore
```

## Project Setup

The easiest way to start a new project and to quickly set up your application:

Run `yarn start`.

For a full list of available parameters, visit Spartacus schematics [documentation](https://github.com/SAP/cloud-commerce-spartacus-storefront/tree/develop/projects/schematics).

## Setting up a Storefront Manually

Although we recommend using Schematics, there might be situations when you want to build your application from scratch.

The dependencies in this procedure are required by the TUA Spartacus storefront.

1. Inspect the `mystore/src/app/app.module.ts` file for any changes you want to make for your setup. For example, you might want to change the `baseUrl` to point to your server and the `basesite` to corresond with the WCMS site. You likely also want to specify the compatibility version by changing `features.level`, as the default might not be the latest version.

To make use of the modules shipped with `tua-spa` library, the `app.module.ts` must have the following structure:

```typescript
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {ConfigModule} from '@spartacus/core';
import {AppComponent} from './app.component';
import {translationChunksConfig, translations} from '@spartacus/assets';
import {TmaAuthModule, TmaB2cStorefrontModule, TmaProductSummaryModule, tmaTranslations, TmfModule} from '@spartacus/tua-spa';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
TmaAuthModule,
TmfModule.forRoot(),
TmaB2cStorefrontModule.withConfig({
backend: {
tmf: {
baseUrl: 'https://localhost:9002',
prefix: '/b2ctelcotmfwebservices/v2/',
},
occ: {
baseUrl: 'https://localhost:9002',
prefix: '/rest/v2/',
endpoints: {
product_scopes: {
details:
'products/${productCode}?fields=averageRating,stock(DEFAULT),description,availableForPickup,code,url,price(DEFAULT),numberOfReviews,manufacturer,categories(FULL),priceRange,multidimensional,configuratorType,configurable,tags,images(FULL),productOfferingPrice(FULL),productSpecification,validFor',
},
productSearch:
'products/search?fields=products(code,name,summary,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,productSpecification),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch',
},
}
},
routing: {
routes: {
product: {
paths: ['product/:productCode/:name', 'product/:productCode'],
}
}
},
context: {
urlParameters: ['baseSite', 'language', 'currency'],
baseSite: ['telcospa']
},
i18n: {
resources: translations,
chunks: translationChunksConfig,
fallbackLang: 'en'
},
features: {
level: '1.4'
}
}),
ConfigModule.withConfig({
i18n: {
resources: tmaTranslations
}
}),
TmaProductSummaryModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
```

2. Replace the entire contents of `mystore/src/app/app.component.html with <cx-storefront>Loading...</cx-storefront>` with:

```html
<cx-storefront>Loading...</cx-storefront>
```

3. Open `mystore/package.json` using a text editor.

4. Add the following dependencies to the end of the `dependencies` section of `package.json`.

```json
"@angular/pwa": "^0.803.2",
"@angular/service-worker": "~8.2.5",
"@ng-bootstrap/ng-bootstrap": "5.1.0",
"@ng-select/ng-select": "^3.0.7",
"@ngrx/effects": "~8.3.0",
"@ngrx/router-store": "~8.3.0",
"@ngrx/store": "~8.3.0",
"ngx-infinite-scroll": "^8.0.0",
"bootstrap": "^4.2.1",
"i18next": "^15.0.6",
"i18next-xhr-backend": "^2.0.1",
"material-design-icons": "^3.0.1",

"@spartacus/core": "~1.5.0",
"@spartacus/styles": "~1.5.0",
"@spartacus/storefront": "~1.5.0",
"@spartacus/assets": "~1.5.0",
"@spartacus/styles": "~1.5.0",
"@spartacus/tua-spa": "~0.1.0-next.2",
```

**Note:** Make sure to add a comma to the end of the last dependency statement listed in this section. For example, the last statement in your new app might be `"zone.js": "~0.9.1"` so you need to add a comma after `0.9.1"`.

5. Make sure that the following import is found in the `mystore/src/styles.scss`:

```bash
@import '~@spartacus/styles/index';
@import '~@spartacus/tua-spa/storefrontstyles/index';
```

6. From the terminal window, within `mystore`, install the dependencies by running the following command:

```bash
yarn install
```

7. Start the angular client app. From the terminal window, within `mystore` start the application by running the following command:

```bash
yarn start
```

8. Make sure your backend server is up and running (SAP Commerce with TUA). When the backend server is properly started, point your browser to http://localhost:4200/telcospa/en/usd.

**Note:**

(1) Using `~` instructs yarn to use the latest patch version (x.y.**z**); whereas, using `^` instructs yarn to use the latest minor version (x.**y**.0).

(2) If you are updating an existing app, and changing dependencies, it is recommended to delete the `node_modules` folder before running the install command.

### Adding Import Declarations and Storefront Configuration Settings

**Note:** Some statements in the preceding example were generated by Angular when you first created the app.

#### About the Import Statements

The import statements import either modules or default data needed by TUA Spartacus.

## Building and Starting

This section describes how to validate your back-end installation and start the application with the storefront enabled.

## Validating the SAP Commerce Back End

**Note:** The Chrome browser is recommended and used in the following example, but other browsers can be used as long as they recognize and allow you to continue even though a site is using a self-signed certificate.

1. Use a web browser to access the OCC endpoint of your backend.

The default is available at: `{server-base-url}/rest/v2/electronics/cms/pages`

For example, you can access:
https://localhost:9002/rest/v2/telcospa/cms/pages with a back-end instance running from `https://localhost:9002`.

2. Accept the security exception in your browser if you are running a development instance with a self-signed HTTPS certificate.

When the request works, you will see an XML response in your browser.

### Starting the Storefront Application

To start your TUA Spartacus storefront, enter the following command from `mystore` in your terminal window:

```bash
yarn start
```

When the app server is properly started, point your browser to http://localhost:4200.

Or, to start your TUA Spartacus storefront securely, enter the following command:

```bash
yarn start --ssl
```

Then point your browser to https://localhost:4200.
Loading